avoid illegal memory access when doing "-T [URL] [URL]"
authorDaniel Stenberg <daniel@haxx.se>
Tue, 7 Feb 2006 18:56:41 +0000 (18:56 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 7 Feb 2006 18:56:41 +0000 (18:56 +0000)
src/main.c

index 44471be..c604924 100644 (file)
@@ -4216,8 +4216,10 @@ show_error:
 
     } /* loop to the next globbed upload file */
 
-    if(inglob)
+    if(inglob) {
       glob_cleanup(inglob);
+      inglob = NULL;
+    }
 
     if(outfiles)
       free(outfiles);