Initialize reply structures to avoid segmentation fault in debug

This commit is contained in:
Stefan Wahren 2012-07-13 22:59:26 +02:00
parent 198e9afcef
commit 5d724d9473

View File

@ -31,6 +31,9 @@ main(int argc, char **argv)
char *device, *addr_str, *xml_result;
int address, baudrate = 9600;
memset((void *)&reply, 0, sizeof(mbus_frame));
memset((void *)&reply_data, 0, sizeof(mbus_frame_data));
if (argc == 3)
{