mirror of
https://github.com/ipmitool/ipmitool.git
synced 2025-05-10 18:47: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)
|
||||
return;
|
||||
*desc = NULL;
|
||||
|
||||
if (rec->event_type == 0x6f) {
|
||||
evt = sensor_specific_types;
|
||||
|
Loading…
x
Reference in New Issue
Block a user