diff options
author | Wayne Davison <wayned@samba.org> | 2008-03-21 07:11:37 -0700 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2008-03-21 07:22:34 -0700 |
commit | 987a546756461b305120d08e379bd83c95fbc39b (patch) | |
tree | 3b06d75e091ea76a8f16a61928bbdcdf032944b2 /io.c | |
parent | 4d30f17671bdcc0f17facb133ea283eea6f0dc12 (diff) | |
download | rsync-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |