Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/x68k/x68k fix potential use of uninitialized local ...
details: https://anonhg.NetBSD.org/src/rev/fb9c1f291c09
branches: trunk
changeset: 554726:fb9c1f291c09
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Nov 01 11:44:46 2003 +0000
description:
fix potential use of uninitialized local variable 'error'
diffstat:
sys/arch/x68k/x68k/disksubr.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (29 lines):
diff -r 9184f18ed84e -r fb9c1f291c09 sys/arch/x68k/x68k/disksubr.c
--- a/sys/arch/x68k/x68k/disksubr.c Sat Nov 01 11:09:02 2003 +0000
+++ b/sys/arch/x68k/x68k/disksubr.c Sat Nov 01 11:44:46 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: disksubr.c,v 1.22 2003/08/07 16:30:29 agc Exp $ */
+/* $NetBSD: disksubr.c,v 1.23 2003/11/01 11:44:46 jdolecek Exp $ */
/*
* Copyright (c) 1982, 1986, 1988 Regents of the University of California.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.22 2003/08/07 16:30:29 agc Exp $");
+__KERNEL_RCSID(0, "$NetBSD: disksubr.c,v 1.23 2003/11/01 11:44:46 jdolecek Exp $");
#include "opt_compat_netbsd.h"
@@ -363,9 +363,9 @@
}
}
-dodospart:
/* do dos partitions in the process of getting disklabel? */
if (error) {
+dodospart:
if (lp->d_secsize >= 2048) {
error = ESRCH;
goto done;
Home |
Main Index |
Thread Index |
Old Index