Module: sip-router
Branch: master
Commit: 613d188f92401c60549ea0337ea0dcf3c68067d7
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=613d188…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Tue Sep 2 14:25:42 2014 -0400
xhttp_pi: proper sizeof for memset
---
modules/xhttp_pi/xhttp_pi_fnc.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/xhttp_pi/xhttp_pi_fnc.c b/modules/xhttp_pi/xhttp_pi_fnc.c
index 720b1d9..4d7f0a4 100644
--- a/modules/xhttp_pi/xhttp_pi_fnc.c
+++ b/modules/xhttp_pi/xhttp_pi_fnc.c
@@ -889,7 +889,7 @@ int ph_getColVals(ph_mod_t *module, ph_cmd_t *cmd,
if(vals==NULL||ids==NULL) {LM_ERR("oom\n"); return -1;}
col_vals = vals; col_ids = ids;
vals = &col_vals[size]; ids = &col_ids[size];
- memset(vals, 0, sizeof(str*)); memset(ids, 0, sizeof(str*));
+ memset(vals, 0, sizeof(str)); memset(ids, 0, sizeof(str));
/* Retrieve the node attribute */
attr.s = ph_xmlNodeGetAttrContentByName(node,
XHTTP_PI_XML_ID_ATTR);