make sure that records are initialized to avoid potential core dumps after incomplete parsning and repacking

This commit is contained in:
Robert Johansson
2012-08-12 19:08:14 +09:00
parent d816a1c30f
commit dbd69e49f5

View File

@ -3706,6 +3706,8 @@ mbus_data_record_new()
return NULL; return NULL;
} }
memset(record, 0, sizeof(mbus_data_record));
record->next = NULL; record->next = NULL;
return record; return record;
} }