summaryrefslogtreecommitdiff
path: root/tools/reporter.c
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2021-09-14 19:25:31 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2021-09-15 15:24:56 +0200
commit1a5c79d1d18cf887646edbdd7e798d93a2f9783f (patch)
tree5fafb8c40f3b44ec97006227d0dc65e863e3268b /tools/reporter.c
parent9c5d2874a73d884ede9bb3f0583b238f8764ab92 (diff)
downloadlvm2-1a5c79d1d18cf887646edbdd7e798d93a2f9783f.tar.gz
clang: keep final_opts_list initialized for all paths
Likely impossible path, but just keep always initilized.
Diffstat (limited to 'tools/reporter.c')
-rw-r--r--tools/reporter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/reporter.c b/tools/reporter.c
index 9fb8b128c..54a538d04 100644
--- a/tools/reporter.c
+++ b/tools/reporter.c
@@ -828,7 +828,7 @@ static int _get_report_options(struct cmd_context *cmd,
{
int action;
struct arg_value_group_list *current_group;
- struct dm_list *final_opts_list[REPORT_IDX_COUNT];
+ struct dm_list *final_opts_list[REPORT_IDX_COUNT] = { NULL };
struct dm_list *opts_list = NULL;
struct dm_str_list *sl;
struct dm_pool *mem;