mirror of
https://github.com/servalproject/serval-dna.git
synced 2024-12-21 14:07:53 +00:00
Clear monitor state structure
This commit is contained in:
parent
eec8fb6e95
commit
dd78c11db0
@ -112,6 +112,7 @@ int monitor_client_open(struct monitor_state **res)
|
|||||||
}
|
}
|
||||||
|
|
||||||
*res = (struct monitor_state*)malloc(sizeof(struct monitor_state));
|
*res = (struct monitor_state*)malloc(sizeof(struct monitor_state));
|
||||||
|
memset(res,sizeof(struct monitor_state),0);
|
||||||
return fd;
|
return fd;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user