1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-30 17:18:21 +03:00

libdm: fix check of pointer

Ahhh being blind here - wanted to check the pointer before dereference
not a dereferenced one.
This commit is contained in:
Zdenek Kabelac 2015-11-16 11:51:43 +01:00
parent 2a2487f02f
commit b6a45963e3

View File

@ -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;
}