mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-11 19:17:22 +00:00
always initialize pointer to NULL at start of description
function as callers expect it to be initialized but it isn't always.
This commit is contained in:
parent
2eeceac233
commit
1157a0e498
@ -117,6 +117,7 @@ ipmi_get_event_desc(struct sel_event_record * rec, char ** desc)
|
|||||||
|
|
||||||
if (desc == NULL)
|
if (desc == NULL)
|
||||||
return;
|
return;
|
||||||
|
*desc = NULL;
|
||||||
|
|
||||||
if (rec->event_type == 0x6f) {
|
if (rec->event_type == 0x6f) {
|
||||||
evt = sensor_specific_types;
|
evt = sensor_specific_types;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user