aboutsummaryrefslogtreecommitdiffstats
path: root/options.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-11-07 09:46:20 -0800
committerWayne Davison <wayned@samba.org>2009-11-07 09:46:20 -0800
commit2907af472d1f33b3c422cb9f601c121b242aa9c7 (patch)
treeea8a3097ae60ccc6c87342cdd8ffe1fff761bc8e /options.c
parent8346c62a95d601f2516059cccb4784fe36fe3e9d (diff)
downloadandroid_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.c12
1 files changed, 7 insertions, 5 deletions
diff --git a/options.c b/options.c
index 0377ef6f..546f63d8 100644
--- a/options.c
+++ b/options.c
@@ -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;