From 91893f772b060ebb72cdebc12dfbd2bf69bcc1f5 Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Wed, 25 Oct 2023 17:52:19 +0200 Subject: [PATCH] tpm2-setup: terminate the option array Otherwise bad things happen: $ build/systemd-tpm2-setup --foo Segmentation fault (core dumped) --- src/tpm2-setup/tpm2-setup.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.47.3