Skip to content

Commit

Permalink
loader: cleanly exit on error
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianfreyer committed Feb 22, 2018
1 parent 66f44ea commit 45ef680
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ loader_main(struct loader_callbacks *cb, void *arg, int version, int ndisks)
callbacks_arg = arg;

/* setjmp error anchor */
if (setjmp(jb))
if (setjmp(jb)) {
CALLBACK(exit, errno);
return;
}

if (parse_args(&loader_args))
goto error;
Expand Down

0 comments on commit 45ef680

Please sign in to comment.