From e08e5a5a077a8d3f0c03592f3c23f0453c3095ce Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 13 May 2024 22:47:36 +0200 Subject: [PATCH] gcc: better initilizer for older gcc compilers So use { { } }. --- tools/command.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/command.c b/tools/command.c index fd003f41c..396c5c52f 100644 --- a/tools/command.c +++ b/tools/command.c @@ -128,7 +128,7 @@ const struct lv_type *get_lv_type(int lvt_enum) #endif /* MAN_PAGE_GENERATOR */ -struct command_name_args command_names_args[LVM_COMMAND_COUNT] = { 0 }; +struct command_name_args command_names_args[LVM_COMMAND_COUNT] = { { 0 } }; /* array of pointers into opt_names[] that is sorted alphabetically (by long opt name) */