[sr-dev] git:master: htable: initialize the value for iterator list index
Daniel-Constantin Mierla
miconda at gmail.com
Thu Oct 16 01:07:08 CEST 2014
Module: sip-router
Branch: master
Commit: 853bb22836c888b19edc9db00edb1df0c0be0554
URL: http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=853bb22836c888b19edc9db00edb1df0c0be0554
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
---
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