Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
libpkg: Use the correct type for a NULL check
Mark Johnston committed 3 years ago
commit 8b18fd8392c3d383838f728ba4ad6b085981deb0
parent c08ee6d
1 file changed +1 -1
modified libpkg/pkghash.c
@@ -151,7 +151,7 @@ pkghash_add(pkghash *table, const char *key, void *value, void (*free_func)(void
size_t
pkghash_count(pkghash *table)
{
-
	if (table == 0)
+
	if (table == NULL)
		return (0);
	return (table->count);
}