master - libdm: fix check of pointer
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=b6a45963e341d85196fcb070026180b3c62d608f Commit: b6a45963e341d85196fcb070026180b3c62d608f Parent: 2a2487f02fb2ddb72106f922dcbf0ddda6959b2f Author: Zdenek Kabelac <[email protected]> AuthorDate: Mon Nov 16 11:51:43 2015 +0100 Committer: Zdenek Kabelac <[email protected]> CommitterDate: Mon Nov 16 13:10:24 2015 +0100
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 files changed, 2 insertions(+), 2 deletions(-)
libdm/libdm-report.c +2 -2
@@ -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; }