possibly uninitialized variable
authorDaniel Stenberg <daniel@haxx.se>
Tue, 28 Oct 2003 09:28:11 +0000 (09:28 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Oct 2003 09:28:11 +0000 (09:28 +0000)
src/main.c

index 86d4338..985e2b7 100644 (file)
@@ -2834,6 +2834,8 @@ operate(struct Configurable *config, int argc, char *argv[])
           break;
         }
       }
+      else
+        urlnum = 1; /* without globbing, this is a single URL */
 
       /* if multiple files extracted to stdout, insert separators! */
       separator= ((!outfiles || curl_strequal(outfiles, "-")) && urlnum > 1);