diff options
| author | John Levon <john.levon@joyent.com> | 2019-08-27 21:56:50 +0000 |
|---|---|---|
| committer | John Levon <john.levon@joyent.com> | 2019-08-28 08:58:06 +0000 |
| commit | fa1252de73f343f36bf1e6f366902ba96c480aaa (patch) | |
| tree | c5e3ad394bfba6fc3f094c050ca250897ce56a4b /usr/src/cmd/zonecfg | |
| parent | df3850281ea4def494e12172cae5a6181823c77d (diff) | |
| download | illumos-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.c | 4 |
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); |
