mirror of
https://github.com/ipmitool/ipmitool.git
synced 2026-06-21 21:01:37 +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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user