Wed Jan 29 19:04:41 2020 UTC ()
Do not compare a char array to NULL, test for empty string instead.


(martin)
diff -r1.14 -r1.15 src/usr.sbin/sysinst/arch/evbarm/md.c

cvs diff -r1.14 -r1.15 src/usr.sbin/sysinst/arch/evbarm/md.c (expand / switch to context diff)
--- src/usr.sbin/sysinst/arch/evbarm/md.c 2020/01/27 21:21:22 1.14
+++ src/usr.sbin/sysinst/arch/evbarm/md.c 2020/01/29 19:04:40 1.15
@@ -1,4 +1,4 @@
-/*	$NetBSD: md.c,v 1.14 2020/01/27 21:21:22 martin Exp $ */
+/*	$NetBSD: md.c,v 1.15 2020/01/29 19:04:40 martin Exp $ */
 
 /*
  * Copyright 1997 Piermont Information Systems Inc.
@@ -352,7 +352,7 @@
 
 	for (i = 0; i < num_usage_infos; i++) {
 		if (infos[i].fs_type == PART_BOOT_TYPE &&
-		    infos[i].mount != NULL &&
+		    infos[i].mount[0] != 0 &&
 		    strcmp(infos[i].mount, PART_BOOT_MOUNT) == 0) {
 			infos[i].size = PART_BOOT_LARGE;
 			return;