Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Use err() instead of errx() as errno is already set by strdup()
Marin Atanasov Nikolov committed 14 years ago
commit c8f46fb0c8f0aa3b29762dd9d0a492016107e763
parent 77f7045
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;