Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
pkghash: explicitly initialize the iterator
Baptiste Daroussin committed 10 months ago
commit b8df3569ae616e20399951f3d0524cac0ca03a8c
parent e16b30a
1 file changed +1 -2
modified libpkg/pkghash.c
@@ -163,9 +163,8 @@ pkghash_count(pkghash *table)
pkghash_it
pkghash_iterator(pkghash *table)
{
-
	pkghash_it it;
+
	pkghash_it it = { 0 };
	it._table = table;
-
	it._index = 0;
	return (it);
}