Clear monitor state structure

This commit is contained in:
Jeremy Lakeman 2012-08-14 13:55:45 +09:30
parent eec8fb6e95
commit dd78c11db0

View File

@ -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;
} }