From: Frantisek Sumsal Date: Wed, 25 Oct 2023 15:52:19 +0000 (+0200) Subject: tpm2-setup: terminate the option array X-Git-Tag: v255-rc1~139^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=91893f772b060ebb72cdebc12dfbd2bf69bcc1f5;p=thirdparty%2Fsystemd.git tpm2-setup: terminate the option array Otherwise bad things happen: $ build/systemd-tpm2-setup --foo Segmentation fault (core dumped) --- diff --git a/src/tpm2-setup/tpm2-setup.c b/src/tpm2-setup/tpm2-setup.c index 580a18cbbbe..ebb956ab214 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;