summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2012-03-31 18:59:14 +0000
committerderaadt <deraadt@openbsd.org>2012-03-31 18:59:14 +0000
commit93e22c49f724c508c4775ff7a55bb289d11e432f (patch)
tree3d49a1b90752ff01fcd0eb3e0a06d78f740c3802
parentMake fsck_msdos work with non-512-byte sector devices. Problem noted (diff)
downloadwireguard-openbsd-93e22c49f724c508c4775ff7a55bb289d11e432f.tar.xz
wireguard-openbsd-93e22c49f724c508c4775ff7a55bb289d11e432f.zip
err(1, NULL) can drive people insane, so please avoid it.
ok guenther
-rw-r--r--usr.bin/kdump/kdump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/kdump/kdump.c b/usr.bin/kdump/kdump.c
index 252eccd75eb..3ef74ad4f57 100644
--- a/usr.bin/kdump/kdump.c
+++ b/usr.bin/kdump/kdump.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kdump.c,v 1.65 2012/03/19 09:05:39 guenther Exp $ */
+/* $OpenBSD: kdump.c,v 1.66 2012/03/31 18:59:14 deraadt Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -238,7 +238,7 @@ main(int argc, char *argv[])
errx(1, "data too long");
newm = realloc(m, ktrlen+1);
if (newm == NULL)
- err(1, NULL);
+ err(1, "realloc");
m = newm;
size = ktrlen;
}