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:
Duncan Laurie 2004-08-06 17:50:27 +00:00
parent 2eeceac233
commit 1157a0e498

View File

@ -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;