Browse Source

htable: initialize the value for iterator list index

Daniel-Constantin Mierla 11 years ago
parent
commit
853bb22836
1 changed files with 1 additions and 0 deletions
  1. 1 0
      modules/htable/ht_api.c

+ 1 - 0
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)