mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
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
This commit is contained in:
parent
61db4df637
commit
ecfaeb2706
@ -808,7 +808,7 @@ ipmi_pef_get_info(struct ipmi_intf * intf)
|
|||||||
uint8_t actions, tbl_size;
|
uint8_t actions, tbl_size;
|
||||||
|
|
||||||
tbl_size = ipmi_pef_get_policy_table(intf, &ptbl);
|
tbl_size = ipmi_pef_get_policy_table(intf, &ptbl);
|
||||||
if (!ptbl) {
|
if (ptbl != NULL) {
|
||||||
free(ptbl);
|
free(ptbl);
|
||||||
ptbl = NULL;
|
ptbl = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user