summaryrefslogtreecommitdiff
path: root/io.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-03-21 07:11:37 -0700
committerWayne Davison <wayned@samba.org>2008-03-21 07:22:34 -0700
commit987a546756461b305120d08e379bd83c95fbc39b (patch)
tree3b06d75e091ea76a8f16a61928bbdcdf032944b2 /io.c
parent4d30f17671bdcc0f17facb133ea283eea6f0dc12 (diff)
downloadrsync-987a546756461b305120d08e379bd83c95fbc39b.tar.gz
A couple improvements to the new arg-globbing code:
- Put all the state variables into a single struct. - Reuse the buffer memory for each glob_expand() call until a final call with a NULL pointer tells us to free it.
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/io.c b/io.c
index 018dd282..d29643d8 100644
--- a/io.c
+++ b/io.c
@@ -921,6 +921,8 @@ void read_args(int f_in, char *mod_name, char *buf, size_t bufsiz, int rl_nulls,
}
argv[argc] = NULL;
+ glob_expand(NULL, NULL, NULL, NULL);
+
*argc_p = argc;
*argv_p = argv;
}