From b6a45963e341d85196fcb070026180b3c62d608f Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Mon, 16 Nov 2015 11:51:43 +0100 Subject: [PATCH] libdm: fix check of pointer Ahhh being blind here - wanted to check the pointer before dereference not a dereferenced one. --- libdm/libdm-report.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }