add missing checks after memory allocation

add missing memset after memory allocation
This commit is contained in:
Stefan Wahren
2013-04-11 22:05:08 +02:00
4 changed files with 112 additions and 3 deletions

View File

@ -3827,6 +3827,10 @@ mbus_frame_data_new()
{
return NULL;
}
memset(data, 0, sizeof(mbus_frame_data));
data->data_var.data = NULL;
data->data_var.record = NULL;
return data;