aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);