From: Eric Bollengier Date: Thu, 13 Sep 2012 06:49:44 +0000 (+0200) Subject: Fix accurate option in the estimate command X-Git-Tag: Release-7.0.0~113 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=9c8b62b8b9b8c3b98beb90e2523b7d990de9b959;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")); } } }