diff options
author | Wayne Davison <wayned@samba.org> | 2009-11-07 09:46:20 -0800 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2009-11-07 09:46:20 -0800 |
commit | 2907af472d1f33b3c422cb9f601c121b242aa9c7 (patch) | |
tree | ea8a3097ae60ccc6c87342cdd8ffe1fff761bc8e /options.c | |
parent | 8346c62a95d601f2516059cccb4784fe36fe3e9d (diff) | |
download | android_external_rsync-2907af472d1f33b3c422cb9f601c121b242aa9c7.tar.gz android_external_rsync-2907af472d1f33b3c422cb9f601c121b242aa9c7.tar.bz2 android_external_rsync-2907af472d1f33b3c422cb9f601c121b242aa9c7.zip |
Try to silence some warnings from "checker".
Diffstat (limited to 'options.c')
-rw-r--r-- | options.c | 12 |
1 files changed, 7 insertions, 5 deletions
@@ -1421,14 +1421,16 @@ int parse_arguments(int *argc_p, const char ***argv_p) arg = sanitize_path(NULL, arg, NULL, 0, SP_DEFAULT); if (daemon_filter_list.head) { int rej; - char *dir, *cp = strdup(arg); + char *cp = strdup(arg); if (!cp) out_of_memory("parse_arguments"); if (!*cp) - goto options_rejected; - dir = cp + (*cp == '/' ? module_dirlen : 0); - clean_fname(dir, CFN_COLLAPSE_DOT_DOT_DIRS); - rej = check_filter(&daemon_filter_list, FLOG, dir, 0) < 0; + rej = 1; + else { + char *dir = cp + (*cp == '/' ? module_dirlen : 0); + clean_fname(dir, CFN_COLLAPSE_DOT_DOT_DIRS); + rej = check_filter(&daemon_filter_list, FLOG, dir, 0) < 0; + } free(cp); if (rej) goto options_rejected; |