From 89839cb1cf858fa9b69e7d55ffbfaec4e8ca5955 Mon Sep 17 00:00:00 2001 From: Milan Broz Date: Thu, 4 Feb 2021 18:10:38 +0100 Subject: [PATCH] Do not use const default structure on stack. This decrease stack space used and avoids Coverity warning. --- src/cryptsetup_args.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cryptsetup_args.h b/src/cryptsetup_args.h index 05cb5877..378ea520 100644 --- a/src/cryptsetup_args.h +++ b/src/cryptsetup_args.h @@ -95,7 +95,7 @@ static struct tools_arg tool_core_args[] = { { NULL, false, CRYPT_ARG_BOOL }, /* static inline void args_reset_default_values(struct tools_arg *args) { - struct tools_arg tmp[] = { { NULL, false, CRYPT_ARG_BOOL }, // UNUSED + static const struct tools_arg tmp[] = { { NULL, false, CRYPT_ARG_BOOL }, // UNUSED #define ARG(A, B, C, D, E, F, G, H ) { A, false, F, G, H }, #include "cryptsetup_arg_list.h" #undef ARG