Sfoglia il codice sorgente

htable: initialize the value for iterator list index

Daniel-Constantin Mierla 11 anni fa
parent
commit
853bb22836
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 i;
 	int k;
 	int k;
 
 
+	k = -1;
 	for(i=0; i<HT_ITERATOR_SIZE; i++)
 	for(i=0; i<HT_ITERATOR_SIZE; i++)
 	{
 	{
 		if(_ht_iterators[i].name.len>0)
 		if(_ht_iterators[i].name.len>0)