summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-30 09:44:32 +0100
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2012-10-30 11:24:00 +0100
commit2fb7a5ce67fd6196416919535fa6a6065e0ea815 (patch)
treef1111e6f71b08991cc7fe69ff7da442881961bba /src
parent57ce4bd4ea3c54317490ad719fad17bc6413c3f6 (diff)
coredumpctl: fix program return code
Diffstat (limited to 'src')
-rw-r--r--src/journal/coredumpctl.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/journal/coredumpctl.c b/src/journal/coredumpctl.c
index 3560534bf6..03f063fe5f 100644
--- a/src/journal/coredumpctl.c
+++ b/src/journal/coredumpctl.c
@@ -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)