main - clang: keep final_opts_list initialized for all paths
Gitweb: https://sourceware.org/git/?p=lvm2.git;a=commitdiff;h=1a5c79d1d18cf887646edbdd7e798d93a2f9783f Commit: 1a5c79d1d18cf887646edbdd7e798d93a2f9783f Parent: 9c5d2874a73d884ede9bb3f0583b238f8764ab92 Author: Zdenek Kabelac <[email protected]> AuthorDate: Tue Sep 14 19:25:31 2021 +0200 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Wed Sep 15 15:24:56 2021 +0200
clang: keep final_opts_list initialized for all paths
Likely impossible path, but just keep always initilized.
--- tools/reporter.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/reporter.c +1 -1
@@ -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;