Explorar el Código

erlang: fix uninitialized member variable

- avoid conditional jump on uninitialized value
Seudin Kasumovic hace 9 años
padre
commit
0e3b19f4b9
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      modules/erlang/worker.c

+ 1 - 0
modules/erlang/worker.c

@@ -44,6 +44,7 @@ int worker_init(worker_handler_t *phandler, int fd, const ei_cnode *ec)
 	phandler->sockfd = fd;
 	phandler->ec = *ec;
 	phandler->next = NULL;
+	phandler->new = NULL;
 
 	return 0;
 }