Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix logic error
Baptiste Daroussin committed 10 years ago
commit 5d5f556a380fd3e676860645f5ef309b4fb2ac27
parent b0a5317
1 file changed +1 -1
modified libpkg/pkg_ports.c
@@ -895,7 +895,7 @@ apply_keyword_file(ucl_object_t *obj, struct plist *p, char *line, struct file_a
	if ((o = ucl_object_find_key(obj,  "arguments")) && ucl_object_toboolean(o)) {
		spaces = pkg_utils_count_spaces(line);
		args = malloc((spaces + 1)* sizeof(char *));
-
		if (args != NULL) {
+
		if (args == NULL) {
			return (EPKG_FATAL);
		}
		tofree = buf = strdup(line);