Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use the kh_contains macro
Baptiste Daroussin committed 9 years ago
commit e7687144512b410c7252b285626961ac5bb587ec
parent df8a7e2
1 file changed +1 -2
modified libpkg/elfhints.c
@@ -100,8 +100,7 @@ shlib_list_add(kh_shlib_t **shlib_list, const char *dir,

	/* If shlib_file is already in the shlib_list table, don't try
	 * and add it again */
-
	kh_find(shlib, *shlib_list, shlib_file, sl);
-
	if (sl != NULL)
+
	if (kh_contains(shlib, *shlib_list, shlib_file))
		return (EPKG_OK);

	path_len = strlen(dir) + strlen(shlib_file) + 2;