Radish alpha
H
HardenedBSD Package Manager
Radicle
Git (anonymous pull)
Log in to clone via SSH
Use err() instead of errx() as errno is already set by strdup()
Marin Atanasov Nikolov committed 14 years ago
commit c8f46fb0c8f0aa3b29762dd9d0a492016107e763
parent 77f70458096d58096e2a910e9775ae3ca12680de
1 file changed +4 -4
modified pkg/register.c
@@ -83,23 +83,23 @@ exec_register(int argc, char **argv)
		switch (ch) {
			case 'f':
				if ((plist = strdup(optarg)) == NULL)
-
					errx(1, "cannot allocate memory");
+
					err(1, "cannot allocate memory");

				break;
			case 'm':
				if ((mdir = strdup(optarg)) == NULL)
-
					errx(1, "cannot allocate memory");
+
					err(1, "cannot allocate memory");
				break;
			case 'a':
				if ((arch = strdup(optarg)) == NULL)
-
					errx(1, "cannot allocate memory");
+
					err(1, "cannot allocate memory");
				break;
			case 'd':
				pkg_setautomatic(pkg);
				break;
			case 'i':
				if ((input_path = strdup(optarg)) == NULL)
-
					errx(1, "cannot allocate memory");
+
					err(1, "cannot allocate memory");
				break;
			case 'l':
				legacy = true;