diff options
author | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-14 19:25:31 +0200 |
---|---|---|
committer | Zdenek Kabelac <zkabelac@redhat.com> | 2021-09-15 15:24:56 +0200 |
commit | 1a5c79d1d18cf887646edbdd7e798d93a2f9783f (patch) | |
tree | 5fafb8c40f3b44ec97006227d0dc65e863e3268b /tools/reporter.c | |
parent | 9c5d2874a73d884ede9bb3f0583b238f8764ab92 (diff) | |
download | lvm2-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.c | 2 |
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; |