diff options
author | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-10-25 17:52:19 +0200 |
---|---|---|
committer | Frantisek Sumsal <frantisek@sumsal.cz> | 2023-10-25 18:18:48 +0200 |
commit | 91893f772b060ebb72cdebc12dfbd2bf69bcc1f5 (patch) | |
tree | 14d42c006b347cbc127a37908d081f44492b0d8b /src/tpm2-setup | |
parent | test: add a couple more tests for systemd-pcrextend (diff) | |
download | systemd-91893f772b060ebb72cdebc12dfbd2bf69bcc1f5.tar.xz systemd-91893f772b060ebb72cdebc12dfbd2bf69bcc1f5.zip |
tpm2-setup: terminate the option array
Otherwise bad things happen:
$ build/systemd-tpm2-setup --foo
Segmentation fault (core dumped)
Diffstat (limited to 'src/tpm2-setup')
-rw-r--r-- | src/tpm2-setup/tpm2-setup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tpm2-setup/tpm2-setup.c b/src/tpm2-setup/tpm2-setup.c index 580a18cbbb..ebb956ab21 100644 --- a/src/tpm2-setup/tpm2-setup.c +++ b/src/tpm2-setup/tpm2-setup.c @@ -63,6 +63,7 @@ static int parse_argv(int argc, char *argv[]) { { "version", no_argument, NULL, ARG_VERSION }, { "tpm2-device", required_argument, NULL, ARG_TPM2_DEVICE }, { "early", required_argument, NULL, ARG_EARLY }, + {} }; int c, r; |