bug fix: don't assume that frame->next is zeroed before mbus_parse is called

This commit is contained in:
Robert Johansson 2013-07-04 23:30:27 +09:00
parent a8f5c07fcf
commit 1fee3d9a5a

View File

@ -2489,6 +2489,8 @@ mbus_parse(mbus_frame *frame, unsigned char *data, size_t data_size)
if (frame && data && data_size > 0)
{
frame->next = NULL;
if (parse_debug)
printf("%s: Attempting to parse binary data [size = %zu]\n", __PRETTY_FUNCTION__, data_size);