autoupdater: Fixed segfault on wrong long option
If an autoupdater long option (prefixed with '--') are unknown then a segmentation fault occurs. Example: root@node:~# autoupdater --xyz Segmentation fault [Matthias Schiffer: changed sentinel syntax]
This commit is contained in:
parent
208d9ccd14
commit
85af243158
|
@ -112,6 +112,7 @@ static void parse_args(int argc, char *argv[], struct settings *settings) {
|
|||
{"no-action", no_argument, NULL, OPTION_NO_ACTION},
|
||||
{"force-version", no_argument, NULL, OPTION_FORCE_VERSION},
|
||||
{"help", no_argument, NULL, OPTION_HELP},
|
||||
{}
|
||||
};
|
||||
|
||||
while (true) {
|
||||
|
|
Loading…
Reference in New Issue