Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Fix logical testing
Baptiste Daroussin committed 10 years ago
commit fcfa754a42e87dd0760465b95d9225f3407a9bad
parent 7b2b3484b04e8c7a7050bb032c9ecce89e006528
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);