From ecfaeb27060fbdcadc579ca0e8fc1e64015f73ab Mon Sep 17 00:00:00 2001 From: Zdenek Styblik Date: Tue, 30 Dec 2014 16:02:21 +0100 Subject: [PATCH] Change expression in ipmi_pef_get_info() in order to silence Coverity Commit changes expression from ``if (!ptbl)'' to ``if (ptbl != NULL)'' in order to silence Coverity. CID#1149049 --- lib/ipmi_pef.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ipmi_pef.c b/lib/ipmi_pef.c index 154bf40..5f201f1 100644 --- a/lib/ipmi_pef.c +++ b/lib/ipmi_pef.c @@ -808,7 +808,7 @@ ipmi_pef_get_info(struct ipmi_intf * intf) uint8_t actions, tbl_size; tbl_size = ipmi_pef_get_policy_table(intf, &ptbl); - if (!ptbl) { + if (ptbl != NULL) { free(ptbl); ptbl = NULL; }