mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47:22 +00:00
Change expression in ipmi_pef_list_policies() in order to silence Coverity
This commit is contained in:
parent
8775af38f5
commit
2d66f8d5cf
@ -674,7 +674,7 @@ ipmi_pef_list_policies(struct ipmi_intf * intf)
|
|||||||
|
|
||||||
tbl_size = ipmi_pef_get_policy_table(intf, &ptbl);
|
tbl_size = ipmi_pef_get_policy_table(intf, &ptbl);
|
||||||
if (!tbl_size) {
|
if (!tbl_size) {
|
||||||
if (!ptbl) {
|
if (ptbl != NULL) {
|
||||||
free(ptbl);
|
free(ptbl);
|
||||||
ptbl = NULL;
|
ptbl = NULL;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user