Skip to content

Commit

Permalink
Fix crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marco van Wieringen committed Feb 17, 2015
1 parent 0967841 commit 6d99a2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dird/ua_prune.c
Expand Up @@ -173,7 +173,7 @@ int prune_cmd(UAContext *ua, const char *cmd)
/*
* Ask what jobtype to prune.
*/
if (find_arg_with_value(ua, NT_("jobtype")) >= 0) {
if ((i = find_arg_with_value(ua, NT_("jobtype"))) >= 0) {
bstrncpy(jobtype, ua->argv[i], sizeof(jobtype));
} else {
start_prompt(ua, _("Jobtype to prune:\n"));
Expand Down

0 comments on commit 6d99a2b

Please sign in to comment.