aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2006-02-07 18:56:41 +0000
committerDaniel Stenberg <daniel@haxx.se>2006-02-07 18:56:41 +0000
commitd7a83d8995c43371c48d2785e602c5f446b634ce (patch)
tree3ab7bffdac73277ef1cea4842e9874b5d61ba6cb
parent7725729d908527cdf1eb94dbafad1315f52937aa (diff)
avoid illegal memory access when doing "-T [URL] [URL]"
-rw-r--r--src/main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 44471be40..c6049242c 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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);