Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use the kh_contains macro
Baptiste Daroussin committed 9 years ago
commit e7687144512b410c7252b285626961ac5bb587ec
parent df8a7e27dc2dded54720c35fa9c5ac693baefffb
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;