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-Tag: Release-5.2.13~99 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f9f40d9106f45ecfe8c8e30cbf8624fb7f7a5f71;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 d42bc7f9b1..ba33029447 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1139,8 +1139,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) { @@ -1152,6 +1152,7 @@ static int estimate_cmd(UAContext *ua, const char *cmd) continue; } else { ua->error_msg(_("Accurate value missing.\n")); + return 1; } } }