coredumpctl: fix program return code

This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2012-10-30 11:24:00 +01:00
parent 57ce4bd4ea
commit 2fb7a5ce67
+5 -2
View File
@@ -476,10 +476,13 @@ int main(int argc, char *argv[]) {
log_open();
matches = new_matches();
if (!matches)
if (!matches) {
r = -ENOMEM;
goto end;
}
if (parse_argv(argc, argv))
r = parse_argv(argc, argv);
if (r < 0)
goto end;
if (arg_action == ACTION_NONE)