Module Name: src Committed By: christos Date: Mon Nov 4 20:07:49 UTC 2013
Modified Files: src/distrib/utils/sysinst: bsddisklabel.c Log Message: fix unitialized variable access To generate a diff of this commit: cvs rdiff -u -r1.58 -r1.59 src/distrib/utils/sysinst/bsddisklabel.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/distrib/utils/sysinst/bsddisklabel.c diff -u src/distrib/utils/sysinst/bsddisklabel.c:1.58 src/distrib/utils/sysinst/bsddisklabel.c:1.59 --- src/distrib/utils/sysinst/bsddisklabel.c:1.58 Tue Mar 19 18:16:53 2013 +++ src/distrib/utils/sysinst/bsddisklabel.c Mon Nov 4 15:07:49 2013 @@ -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 @@ check_partitions(void) 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; }