random-seed: terminate the option array

So we don't crash on invalid options:

$ build/systemd-random-seed --foo
Segmentation fault (core dumped)
This commit is contained in:
Frantisek Sumsal
2023-10-25 20:41:46 +01:00
committed by Luca Boccassi
parent 8c29f6a572
commit dd741b8893
+1
View File
@@ -348,6 +348,7 @@ static int parse_argv(int argc, char *argv[]) {
static const struct option options[] = {
{ "help", no_argument, NULL, 'h' },
{ "version", no_argument, NULL, ARG_VERSION },
{}
};
int c;