Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/installboot/arch Don't try to use an uninitialized ...
details: https://anonhg.NetBSD.org/src/rev/5477b942b686
branches: trunk
changeset: 581496:5477b942b686
user: lukem <lukem%NetBSD.org@localhost>
date: Thu Jun 02 05:10:22 2005 +0000
description:
Don't try to use an uninitialized variable.
Detected with gcc -Wuninitialized.
diffstat:
usr.sbin/installboot/arch/amiga.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r f9786143846f -r 5477b942b686 usr.sbin/installboot/arch/amiga.c
--- a/usr.sbin/installboot/arch/amiga.c Thu Jun 02 04:59:17 2005 +0000
+++ b/usr.sbin/installboot/arch/amiga.c Thu Jun 02 05:10:22 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: amiga.c,v 1.3 2004/06/20 22:20:17 jmc Exp $ */
+/* $NetBSD: amiga.c,v 1.4 2005/06/02 05:10:22 lukem Exp $ */
/*-
* Copyright (c) 1999, 2002 The NetBSD Foundation, Inc.
@@ -45,7 +45,7 @@
#include <sys/cdefs.h>
#if defined(__RCSID) && !defined(__lint)
-__RCSID("$NetBSD: amiga.c,v 1.3 2004/06/20 22:20:17 jmc Exp $");
+__RCSID("$NetBSD: amiga.c,v 1.4 2005/06/02 05:10:22 lukem Exp $");
#endif /* !__lint */
#include <sys/param.h>
@@ -91,6 +91,7 @@
u_int32_t block[128*16];
+ retval = 0;
if (fstat(params->s1fd, &bootstrapsb) == -1) {
warn("Examining `%s'", params->stage1);
goto done;
Home |
Main Index |
Thread Index |
Old Index