Initialize reply structures to avoid segmentation fault in debug
This commit is contained in:
parent
198e9afcef
commit
5d724d9473
@ -32,6 +32,9 @@ main(int argc, char **argv)
|
|||||||
char *device, *addr_str, *xml_result;
|
char *device, *addr_str, *xml_result;
|
||||||
int address, baudrate = 9600;
|
int address, baudrate = 9600;
|
||||||
|
|
||||||
|
memset((void *)&reply, 0, sizeof(mbus_frame));
|
||||||
|
memset((void *)&reply_data, 0, sizeof(mbus_frame_data));
|
||||||
|
|
||||||
if (argc == 3)
|
if (argc == 3)
|
||||||
{
|
{
|
||||||
device = argv[1];
|
device = argv[1];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user