[sr-dev] git:4.2: htable: initialize the value for iterator list index
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 16 01:08:42 CEST 2014
Module: sip-router
Branch: 4.2
Commit: 980bf253a9458180e7a34eefd9bc221b1744c0a6
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=980bf253a9458180e7a34eefd9bc221b1744c0a6
Author: Daniel-Constantin Mierla <miconda at gmail.com>
Committer: Daniel-Constantin Mierla <miconda at gmail.com>
Date: Thu Oct 16 00:58:27 2014 +0200
htable: initialize the value for iterator list index
(cherry picked from commit 853bb22836c888b19edc9db00edb1df0c0be0554)
---
modules/htable/ht_api.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/modules/htable/ht_api.c b/modules/htable/ht_api.c
index f888714..a57af23 100644
--- a/modules/htable/ht_api.c
+++ b/modules/htable/ht_api.c
@@ -1417,6 +1417,7 @@ int ht_iterator_next(str *iname)
int i;
int k;
+ k = -1;
for(i=0; i<HT_ITERATOR_SIZE; i++)
{
if(_ht_iterators[i].name.len>0)
More information about the sr-dev
mailing list