]> pd.if.org Git - zpackage/commitdiff
fix segfault
authorNathan Wagner <nw@hydaspes.if.org>
Sat, 16 Feb 2019 01:47:30 +0000 (01:47 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sat, 16 Feb 2019 01:47:30 +0000 (01:47 +0000)
src/fetchurl.c

index 1b337244421df9f0f74b7aa5a2d99186670ecd60..3a9436bddfbdd93cde3de6a3339c3258be54ff61 100644 (file)
@@ -519,7 +519,7 @@ int main(int ac, char *av[]) {
 #endif
        char *req_file = 0;
        char *host = 0;
-       struct tls_uri uri;
+       struct tls_uri uri = { 0 };
        char *outfile = 0;
        int raw = 0, head = 0;
        int out = 1;