Sfoglia il codice sorgente

htable: initialize the value for iterator list index

(cherry picked from commit 853bb22836c888b19edc9db00edb1df0c0be0554)
Daniel-Constantin Mierla 11 anni fa
parent
commit
980bf253a9
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  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)