Module Name:    src
Committed By:   martin
Date:           Wed Jan 29 19:04:41 UTC 2020

Modified Files:
        src/usr.sbin/sysinst/arch/evbarm: md.c

Log Message:
Do not compare a char array to NULL, test for empty string instead.


To generate a diff of this commit:
cvs rdiff -u -r1.14 -r1.15 src/usr.sbin/sysinst/arch/evbarm/md.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/sysinst/arch/evbarm/md.c
diff -u src/usr.sbin/sysinst/arch/evbarm/md.c:1.14 src/usr.sbin/sysinst/arch/evbarm/md.c:1.15
--- src/usr.sbin/sysinst/arch/evbarm/md.c:1.14	Mon Jan 27 21:21:22 2020
+++ src/usr.sbin/sysinst/arch/evbarm/md.c	Wed Jan 29 19:04:40 2020
@@ -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 @@ evbarm_part_defaults(struct pm_devs *my_
 
 	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;

Reply via email to