[sr-dev] git:4.4:8d07ef72: erlang: fix uninitialized member variable

Seudin Kasumovic seudin.kasumovic at gmail.com
Wed Apr 20 12:07:49 CEST 2016


Module: kamailio
Branch: 4.4
Commit: 8d07ef72e8280b4367e430bf081d54e0a0b5f4c1
URL: https://github.com/kamailio/kamailio/commit/8d07ef72e8280b4367e430bf081d54e0a0b5f4c1

Author: Seudin Kasumovic <seudin.kasumovic at gmail.com>
Committer: Seudin Kasumovic <seudin.kasumovic at gmail.com>
Date: 2016-04-20T12:06:23+02:00

erlang: fix uninitialized member variable

- avoid conditional jump on uninitialized value

(cherry picked from commit 0e3b19f4b99ea0b9e4eff2decb641e5da2488573)

---

Modified: modules/erlang/worker.c

---

Diff:  https://github.com/kamailio/kamailio/commit/8d07ef72e8280b4367e430bf081d54e0a0b5f4c1.diff
Patch: https://github.com/kamailio/kamailio/commit/8d07ef72e8280b4367e430bf081d54e0a0b5f4c1.patch

---

diff --git a/modules/erlang/worker.c b/modules/erlang/worker.c
index 0bf1be8..86ad3f9 100644
--- a/modules/erlang/worker.c
+++ b/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;
 }




More information about the sr-dev mailing list