Module: kamailio
Branch: master
Commit: 5085446772fa43ffde30c752f955fe4a3067c826
URL:
https://github.com/kamailio/kamailio/commit/5085446772fa43ffde30c752f955fe4…
Author: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Committer: Victor Seva <linuxmaniac(a)torreviejawireless.org>
Date: 2017-01-13T10:28:27+01:00
erlang: fix compuler warning
erlang_mod.c: In function 'erl_rpc':
erlang_mod.c:632:11: warning: 'pvn' may be used uninitialized in this function
[-Wmaybe-uninitialized]
xrepl = xbuff_new(&pvn->u.isname.name.s);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
---
Modified: src/modules/erlang/erlang_mod.c
---
Diff:
https://github.com/kamailio/kamailio/commit/5085446772fa43ffde30c752f955fe4…
Patch:
https://github.com/kamailio/kamailio/commit/5085446772fa43ffde30c752f955fe4…
---
diff --git a/src/modules/erlang/erlang_mod.c b/src/modules/erlang/erlang_mod.c
index 0c15b9d..2753842 100644
--- a/src/modules/erlang/erlang_mod.c
+++ b/src/modules/erlang/erlang_mod.c
@@ -443,7 +443,7 @@ static int erl_rpc(struct sip_msg *msg, char *_m, char *_f, char *_a,
char *_r)
pv_spec_t sp;
pv_spec_t *nsp;
pv_param_t pvp;
- pv_name_t *pvn;
+ pv_name_t *pvn=NULL;
pv_index_t *pvi;
int idx;
int idxf;