瀏覽代碼

htable: initialize the value for iterator list index

(cherry picked from commit 853bb22836c888b19edc9db00edb1df0c0be0554)
Daniel-Constantin Mierla 11 年之前
父節點
當前提交
980bf253a9
共有 1 個文件被更改,包括 1 次插入0 次删除
  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)