Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/distrib/utils/sysinst fix unitialized variable access
details: https://anonhg.NetBSD.org/src/rev/47977c6d632f
branches: trunk
changeset: 791100:47977c6d632f
user: christos <christos%NetBSD.org@localhost>
date: Mon Nov 04 20:07:49 2013 +0000
description:
fix unitialized variable access
diffstat:
distrib/utils/sysinst/bsddisklabel.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (21 lines):
diff -r 460cfea8eedf -r 47977c6d632f distrib/utils/sysinst/bsddisklabel.c
--- a/distrib/utils/sysinst/bsddisklabel.c Mon Nov 04 19:58:02 2013 +0000
+++ b/distrib/utils/sysinst/bsddisklabel.c Mon Nov 04 20:07:49 2013 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bsddisklabel.c,v 1.58 2013/03/19 22:16:53 garbled Exp $ */
+/* $NetBSD: bsddisklabel.c,v 1.59 2013/11/04 20:07:49 christos Exp $ */
/*
* Copyright 1997 Piermont Information Systems Inc.
@@ -743,8 +743,9 @@
if (bootxx != NULL) {
rv = access(bootxx, R_OK);
free(bootxx);
- }
- if (bootxx == NULL || rv != 0) {
+ } else
+ rv = -1;
+ if (rv != 0) {
process_menu(MENU_ok, deconst(MSG_No_Bootcode));
return 0;
}
Home |
Main Index |
Thread Index |
Old Index