summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjsg <jsg@openbsd.org>2014-06-08 16:01:00 +0000
committerjsg <jsg@openbsd.org>2014-06-08 16:01:00 +0000
commitcf924f4237a7376b041b810b5a272a7ed97aac1a (patch)
tree2703ebc5b8e1d8d524a95decf1577d07be95c311
parentinstead of reading past the end of the sun_fstypes array (diff)
downloadwireguard-openbsd-cf924f4237a7376b041b810b5a272a7ed97aac1a.tar.xz
wireguard-openbsd-cf924f4237a7376b041b810b5a272a7ed97aac1a.zip
Remove an incorrect bzero() that was zeroing the
size of the pointer instead of the size of the buffer. Removal suggested by deraadt@ as no code uses the buffer after the zeroing.
-rw-r--r--sys/arch/sparc64/stand/ofwboot/ofdev.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/arch/sparc64/stand/ofwboot/ofdev.c b/sys/arch/sparc64/stand/ofwboot/ofdev.c
index 3a54e9ffb91..5330ee8a221 100644
--- a/sys/arch/sparc64/stand/ofwboot/ofdev.c
+++ b/sys/arch/sparc64/stand/ofwboot/ofdev.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ofdev.c,v 1.21 2014/06/08 15:34:05 jsg Exp $ */
+/* $OpenBSD: ofdev.c,v 1.22 2014/06/08 16:01:00 jsg Exp $ */
/* $NetBSD: ofdev.c,v 1.1 2000/08/20 14:58:41 mrg Exp $ */
/*
@@ -444,7 +444,6 @@ search_label(struct of_dev *devp, u_long off, char *buf, struct disklabel *lp,
return (NULL);
}
- bzero(buf, sizeof(buf));
return ("no disk label");
}