Module: kamailio
Branch: master
Commit: d7431dd190bb1f4aba8e2373807047ac6fe8db90
URL:
https://github.com/kamailio/kamailio/commit/d7431dd190bb1f4aba8e2373807047a…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: 2016-10-28T16:09:40+02:00
lib/srdb1: fix the memset to 0 in util function
---
Modified: lib/srdb1/db_ut.c
---
Diff:
https://github.com/kamailio/kamailio/commit/d7431dd190bb1f4aba8e2373807047a…
Patch:
https://github.com/kamailio/kamailio/commit/d7431dd190bb1f4aba8e2373807047a…
---
diff --git a/lib/srdb1/db_ut.c b/lib/srdb1/db_ut.c
index 54c0811..e5048b7 100644
--- a/lib/srdb1/db_ut.c
+++ b/lib/srdb1/db_ut.c
@@ -358,7 +358,7 @@ int db_print_where(const db1_con_t* _c, char* _b, const int _l, const
db_key_t*
if (_o && strncmp(_o[i], OP_BITWISE_AND, 1) == 0) {
char tmp_buf[16];
int tmp_len = 15;
- memset(tmp_buf, '0', 16);
+ memset(tmp_buf, 0, 16);
if ((*val2str)(_c, &(_v[i]), tmp_buf, &tmp_len) < 0) {
LM_ERR("Error while converting value to string\n");
return -1;