From f0fa8c6df2f803e83b849d1f40a71b8852d2cbf7 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 19 Nov 2006 04:39:35 +0000 Subject: [PATCH] Moved the options_rejected label to avoid a compiler warning on some systems. --- options.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/options.c b/options.c index 954719d6..dd47894d 100644 --- a/options.c +++ b/options.c @@ -1246,12 +1246,8 @@ int parse_arguments(int *argc, const char ***argv, int frommain) if (!*backup_dir) goto options_rejected; clean_fname(backup_dir, 1); - if (check_filter(elp, backup_dir, 1) < 0) { - options_rejected: - snprintf(err_buf, sizeof err_buf, - "Your options have been rejected by the server.\n"); - return 0; - } + if (check_filter(elp, backup_dir, 1) < 0) + goto options_rejected; } } @@ -1457,6 +1453,11 @@ int parse_arguments(int *argc, const char ***argv, int frommain) am_starting_up = 0; return 1; + + options_rejected: + snprintf(err_buf, sizeof err_buf, + "Your options have been rejected by the server.\n"); + return 0; } -- 2.34.1