From 2ccf9a9aba091373ac074a8394e4b4076b0d18e2 Mon Sep 17 00:00:00 2001 From: joerg Date: Thu, 8 Oct 2015 20:58:13 +0000 Subject: [PATCH] Don't check if an array is (not) NULL, check if the string is empty. --- sys/arch/sparc/stand/bootxx/bootxx.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/arch/sparc/stand/bootxx/bootxx.c b/sys/arch/sparc/stand/bootxx/bootxx.c index e95bc3b74c83..23a30d8c3898 100644 --- a/sys/arch/sparc/stand/bootxx/bootxx.c +++ b/sys/arch/sparc/stand/bootxx/bootxx.c @@ -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);