From: Eric Bollengier Date: Thu, 13 Sep 2012 06:49:44 +0000 (+0200) Subject: Fix accurate option in the estimate command X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=5da641c713097d980ba1dc6630f0da07d9ee3dbc;p=bacula%2Fbacula Fix accurate option in the estimate command --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index 9c37032325..0e4fd9d8df 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -1254,9 +1254,14 @@ static int estimate_cmd(UAContext *ua, const char *cmd) } } if (strcasecmp(ua->argk[i], NT_("accurate")) == 0) { - if (!is_yesno(ua->argv[i], &accurate)) { - ua->error_msg(_("Invalid value for accurate. " - "It must be yes or no.\n")); + if (ua->argv[i]) { + if (!is_yesno(ua->argv[i], &accurate)) { + ua->error_msg(_("Invalid value for accurate. " + "It must be yes or no.\n")); + } + continue; + } else { + ua->error_msg(_("Accurate value missing.\n")); } } }