Module Name: src
Committed By: joerg
Date: Thu Oct 8 20:58:13 UTC 2015
Modified Files:
src/sys/arch/sparc/stand/bootxx: bootxx.c
Log Message:
Don't check if an array is (not) NULL, check if the string is empty.
To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 src/sys/arch/sparc/stand/bootxx/bootxx.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/arch/sparc/stand/bootxx/bootxx.c
diff -u src/sys/arch/sparc/stand/bootxx/bootxx.c:1.25 src/sys/arch/sparc/stand/bootxx/bootxx.c:1.26
--- src/sys/arch/sparc/stand/bootxx/bootxx.c:1.25 Mon Oct 26 19:16:57 2009
+++ src/sys/arch/sparc/stand/bootxx/bootxx.c Thu Oct 8 20:58:13 2015
@@ -1,4 +1,4 @@
-/* $NetBSD: bootxx.c,v 1.25 2009/10/26 19:16:57 cegger Exp $ */
+/* $NetBSD: bootxx.c,v 1.26 2015/10/08 20:58:13 joerg Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@@ -86,7 +86,7 @@ main(void)
io.f_flags = F_RAW;
if (devopen(&io, 0, &dummy1)) {
panic("%s: can't open device `%s'", progname,
- prom_bootdevice != NULL ? prom_bootdevice : "unknown");
+ prom_bootdevice[0] ? prom_bootdevice : "unknown");
}
(void)loadboot(&io, (void *)PROM_LOADADDR);