diff options
author | David Dykstra <dwd@samba.org> | 1998-11-24 20:18:11 +0000 |
---|---|---|
committer | David Dykstra <dwd@samba.org> | 1998-11-24 20:18:11 +0000 |
commit | 44e2e57837bcdce0d12a429c308211763ab030db (patch) | |
tree | 9f2a6c368545d9c16e88db6b5f6a48d75a8fcb04 /clientserver.c | |
parent | d1be231290b3867648ee417fad341fdf1caaa94b (diff) | |
download | rsync-44e2e57837bcdce0d12a429c308211763ab030db.tar.gz |
Change sanitize_path() function to not malloc a copy since it only shrinks
paths and it is only used in places that have already just done a copy.
Diffstat (limited to 'clientserver.c')
-rw-r--r-- | clientserver.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/clientserver.c b/clientserver.c index 1cc64373..b4745682 100644 --- a/clientserver.c +++ b/clientserver.c @@ -282,9 +282,7 @@ static int rsync_module(int fd, int i) * and which aren't. */ for (i = 1; i < argc; i++) { - char *copy = sanitize_path(argv[i]); - free((void *)argv[i]); - argv[i] = copy; + sanitize_path(argv[i]); } } |