浏览代码

erlang: fix uninitialized member variable

- avoid conditional jump on uninitialized value
Seudin Kasumovic 9 年之前
父节点
当前提交
0e3b19f4b9
共有 1 个文件被更改,包括 1 次插入0 次删除
  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;
 }