Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.sbin/sysinst/arch/evbarm Do not compare a char array to ...



details:   https://anonhg.NetBSD.org/src/rev/38e936a9e4d0
branches:  trunk
changeset: 744326:38e936a9e4d0
user:      martin <martin%NetBSD.org@localhost>
date:      Wed Jan 29 19:04:40 2020 +0000

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

diffstat:

 usr.sbin/sysinst/arch/evbarm/md.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r fbc54b7373a8 -r 38e936a9e4d0 usr.sbin/sysinst/arch/evbarm/md.c
--- a/usr.sbin/sysinst/arch/evbarm/md.c Wed Jan 29 19:04:12 2020 +0000
+++ b/usr.sbin/sysinst/arch/evbarm/md.c Wed Jan 29 19:04:40 2020 +0000
@@ -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;



Home | Main Index | Thread Index | Old Index