From: Marco van Wieringen Date: Thu, 13 Sep 2012 09:22:53 +0000 (+0200) Subject: Tweak error handling should return just as all others. X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d286f925f187ca3be19ed9f9eb859407f4bc3873;p=bacula%2Fbacula Tweak error handling should return just as all others. --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 0e4fd9d8df..fb64298466 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1249,8 +1249,8 @@ static int estimate_cmd(UAContext *ua, const char *cmd) } continue; } else { - ua->error_msg(_("Level value missing.\n")); - return 1; + ua->error_msg(_("Level value missing.\n")); + return 1; } } if (strcasecmp(ua->argk[i], NT_("accurate")) == 0) { @@ -1262,6 +1262,7 @@ static int estimate_cmd(UAContext *ua, const char *cmd) continue; } else { ua->error_msg(_("Accurate value missing.\n")); + return 1; } } }