summaryrefslogtreecommitdiff
path: root/sbin/disklabel/disklabel.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-07 03:05:32 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-03-07 03:05:32 +0000
commitd84a9dc31b0f950e39bd4a5b34b16b5cb77c5c71 (patch)
tree236b90be5ff359ec46cc696807223e64f074889d /sbin/disklabel/disklabel.c
parentc8328db16e767c46d39db762a2a3364dd0d26c11 (diff)
dkcksum() requires d_checksum cleared
Diffstat (limited to 'sbin/disklabel/disklabel.c')
-rw-r--r--sbin/disklabel/disklabel.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sbin/disklabel/disklabel.c b/sbin/disklabel/disklabel.c
index 4dc40d15064..e1c83a35d5c 100644
--- a/sbin/disklabel/disklabel.c
+++ b/sbin/disklabel/disklabel.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: disklabel.c,v 1.58 1999/03/01 01:50:45 millert Exp $ */
+/* $OpenBSD: disklabel.c,v 1.59 1999/03/07 03:05:31 deraadt Exp $ */
/* $NetBSD: disklabel.c,v 1.30 1996/03/14 19:49:24 ghudson Exp $ */
/*
@@ -44,7 +44,7 @@ static char copyright[] =
#endif /* not lint */
#ifndef lint
-static char rcsid[] = "$OpenBSD: disklabel.c,v 1.58 1999/03/01 01:50:45 millert Exp $";
+static char rcsid[] = "$OpenBSD: disklabel.c,v 1.59 1999/03/07 03:05:31 deraadt Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -400,6 +400,7 @@ writelabel(f, boot, lp)
#endif
lp->d_magic = DISKMAGIC;
lp->d_magic2 = DISKMAGIC;
+ lp->d_checksum = 0;
lp->d_checksum = dkcksum(lp);
if (rflag) {
#ifdef DOSLABEL