Skip to content

Commit

Permalink
erlang: fix uninitialized member variable
Browse files Browse the repository at this point in the history
- avoid conditional jump on uninitialized value
  • Loading branch information
seudin committed Apr 20, 2016
1 parent f6e5201 commit 0e3b19f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/erlang/worker.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0e3b19f

Please sign in to comment.