summaryrefslogtreecommitdiff
path: root/usr/src/cmd/zonecfg
diff options
context:
space:
mode:
authorJohn Levon <john.levon@joyent.com>2019-08-27 21:56:50 +0000
committerJohn Levon <john.levon@joyent.com>2019-08-28 08:58:06 +0000
commitfa1252de73f343f36bf1e6f366902ba96c480aaa (patch)
treec5e3ad394bfba6fc3f094c050ca250897ce56a4b /usr/src/cmd/zonecfg
parentdf3850281ea4def494e12172cae5a6181823c77d (diff)
downloadillumos-joyent-fa1252de73f343f36bf1e6f366902ba96c480aaa.tar.gz
OS-7960 need fixes for NULL as a pointer
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Reviewed by: Ryan Zezeski <rpz@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Robert Mustacchi <rm@joyent.com>
Diffstat (limited to 'usr/src/cmd/zonecfg')
-rw-r--r--usr/src/cmd/zonecfg/zonecfg.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr/src/cmd/zonecfg/zonecfg.c b/usr/src/cmd/zonecfg/zonecfg.c
index 414e59abcd..00fa901539 100644
--- a/usr/src/cmd/zonecfg/zonecfg.c
+++ b/usr/src/cmd/zonecfg/zonecfg.c
@@ -23,7 +23,7 @@
* Copyright (c) 2003, 2010, Oracle and/or its affiliates. All rights reserved.
* Copyright 2014 Nexenta Systems, Inc. All rights reserved.
* Copyright 2014 Gary Mills
- * Copyright 2016, Joyent Inc.
+ * Copyright 2019 Joyent, Inc.
*/
/*
@@ -2972,7 +2972,7 @@ normalize_mac_addr(char *dst, const char *src, int len)
p = strtok(buf, ":");
while (p != NULL) {
n = strtol(p, &e, 16);
- if (*e != NULL || n > 0xff)
+ if (*e != '\0' || n > 0xff)
return;
(void) snprintf(tmp, sizeof (tmp), "%s%02x", sep, n);
(void) strlcat(dst, tmp, len);