diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-06-15 19:47:38 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-06-15 19:47:38 +0200 |
commit | b08a35509c1e09ac3ec2de37a259ff0fbbe69928 (patch) | |
tree | fbb1b105b08c3cda1d1b62b5e63775c60d46f124 /src | |
parent | 406eaf930be77133c1f58ba37171e6d5aa9489c7 (diff) |
systemctl: make sure getopt doesn't segfault
Diffstat (limited to 'src')
-rw-r--r-- | src/systemctl.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/systemctl.c b/src/systemctl.c index be32b0d152..4afe53e18d 100644 --- a/src/systemctl.c +++ b/src/systemctl.c @@ -1343,7 +1343,8 @@ static int parse_argv(int argc, char *argv[]) { { "replace", no_argument, NULL, ARG_REPLACE }, { "session", no_argument, NULL, ARG_SESSION }, { "system", no_argument, NULL, ARG_SYSTEM }, - { "block", no_argument, NULL, ARG_BLOCK } + { "block", no_argument, NULL, ARG_BLOCK }, + { NULL, 0, NULL, 0 } }; int c; |