Explorar o código

htable: initialize the value for iterator list index

(cherry picked from commit 853bb22836c888b19edc9db00edb1df0c0be0554)
Daniel-Constantin Mierla %!s(int64=11) %!d(string=hai) anos
pai
achega
980bf253a9
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  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)