]> git.sur5r.net Git - bacula/bacula/commitdiff
Tweak error handling should return just as all others.
authorMarco van Wieringen <mvw@planets.elm.net>
Thu, 13 Sep 2012 09:22:53 +0000 (11:22 +0200)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:59 +0000 (14:50 +0200)
bacula/src/dird/ua_cmds.c

index 0e4fd9d8df97d78d8a3ea1e64dbd19ee9dee2be2..fb64298466bae6ed268d05d3c41db0751758ffed 100644 (file)
@@ -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;
          }
       }
    }