Need to zero out struct
This commit is contained in:
1 parent
72277b50aa
commit
ba0aa94571
1 file changed
+1
@@ -58,6 +58,7 @@ guac_client* __guac_alloc_client(GUACIO* io) {
|
|||||||
|
|
||||||
/* Allocate new client (not handoff) */
|
/* Allocate new client (not handoff) */
|
||||||
guac_client* client = malloc(sizeof(guac_client));
|
guac_client* client = malloc(sizeof(guac_client));
|
||||||
|
memset(client, 0, sizeof(guac_client));
|
||||||
|
|
||||||
/* Init new client */
|
/* Init new client */
|
||||||
client->io = io;
|
client->io = io;
|
||||||
|
|||||||
Reference in new issue
Block a user