summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2015-11-13 21:54:11 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2015-11-13 21:54:11 +0000
commitdeab02c74a53f59d146824c0c4f7270b81c54bcc (patch)
tree8e2f48dd8510ea8f8f958a3a34900d145c341bcb /sbin
parente8e73227218e61451c5730723ce9660b2d0a7a42 (diff)
No need to zero a global variable before use.
Diffstat (limited to 'sbin')
-rw-r--r--sbin/fdisk/fdisk.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/sbin/fdisk/fdisk.c b/sbin/fdisk/fdisk.c
index bedefb9bed0..d9ec83771f0 100644
--- a/sbin/fdisk/fdisk.c
+++ b/sbin/fdisk/fdisk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: fdisk.c,v 1.82 2015/11/13 15:32:36 krw Exp $ */
+/* $OpenBSD: fdisk.c,v 1.83 2015/11/13 21:54:10 krw Exp $ */
/*
* Copyright (c) 1997 Tobias Weingartner
@@ -141,8 +141,6 @@ main(int argc, char *argv[])
argc -= optind;
argv += optind;
- memset(&disk, 0, sizeof(disk));
-
/* Argument checking */
if (argc != 1 || (i_flag && u_flag))
usage();