Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Fix logical testing
Baptiste Daroussin committed 10 years ago
commit fcfa754a42e87dd0760465b95d9225f3407a9bad
parent 7b2b348
1 file changed +1 -1
modified libpkg/pkg_deps.c
@@ -264,7 +264,7 @@ pkg_deps_parse_formula(const char *in)

		case st_parse_option_start:
			cur_opt = calloc(1, sizeof(*cur_opt));
-
			if (cur_ver == NULL) {
+
			if (cur_opt == NULL) {
				pkg_emit_errno("malloc", "struct pkg_dep_option");

				return (NULL);