Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/stand/common don't compare string pointers ag...
details: https://anonhg.NetBSD.org/src/rev/111a7f97f87b
branches: trunk
changeset: 448449:111a7f97f87b
user: mrg <mrg%NetBSD.org@localhost>
date: Sun Feb 03 11:58:38 2019 +0000
description:
don't compare string pointers against \0
diffstat:
sys/arch/sparc/stand/common/promdev.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (18 lines):
diff -r 42fa42ac21c0 -r 111a7f97f87b sys/arch/sparc/stand/common/promdev.c
--- a/sys/arch/sparc/stand/common/promdev.c Sun Feb 03 11:58:02 2019 +0000
+++ b/sys/arch/sparc/stand/common/promdev.c Sun Feb 03 11:58:38 2019 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: promdev.c,v 1.28 2017/03/25 09:21:21 martin Exp $ */
+/* $NetBSD: promdev.c,v 1.29 2019/02/03 11:58:38 mrg Exp $ */
/*
* Copyright (c) 1993 Paul Kranenburg
@@ -234,7 +234,7 @@
memcpy(disk_pd, pd, sizeof(struct promdata));
if (prom_version() != PROM_OLDMON) {
strcpy(rawpart, prom_bootdevice);
- if ((partition = strchr(rawpart, ':')) != '\0' &&
+ if ((partition = strchr(rawpart, ':')) != NULL &&
*++partition >= 'a' &&
*partition <= 'a' + MAXPARTITIONS) {
part = *partition - 'a';
Home |
Main Index |
Thread Index |
Old Index