diff --git a/libdm/libdm-report.c b/libdm/libdm-report.c index 790f84f1a..24573352a 100644 --- a/libdm/libdm-report.c +++ b/libdm/libdm-report.c @@ -2692,14 +2692,14 @@ static const char *_tok_value_string_list(const struct dm_report_field_type *ft, dm_free(arr); out: *end = s; - if (*sel_str_list) + if (sel_str_list) *sel_str_list = ssl; return s; bad: *end = s; if (ssl) dm_pool_free(mem, ssl); - if (*sel_str_list) + if (sel_str_list) *sel_str_list = NULL; return s; }