diff options
author | Toomas Soome <tsoome@me.com> | 2017-06-19 19:15:38 +0300 |
---|---|---|
committer | Dan McDonald <danmcd@joyent.com> | 2018-02-05 17:48:20 -0500 |
commit | 9a67df4bb0ad84bdbd1a1441f5ddef328cc000f0 (patch) | |
tree | c40e8ef78da1e9bc915d5f9e3a3f4eb0336aeb71 /usr/src/lib/libc | |
parent | 36a64e62848b51ac5a9a5216e894ec723cfef14e (diff) | |
download | illumos-joyent-9a67df4bb0ad84bdbd1a1441f5ddef328cc000f0.tar.gz |
9028 libc: comparison between pointer and zero character constant
Reviewed by: Yuri Pankov <yuripv@yuripv.net>
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk>
Reviewed by: Rob Johnston <rob.johnston@joyent.com>
Approved by: Dan McDonald <danmcd@joyent.com>
Diffstat (limited to 'usr/src/lib/libc')
-rw-r--r-- | usr/src/lib/libc/port/gen/nlspath_checks.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/usr/src/lib/libc/port/gen/nlspath_checks.c b/usr/src/lib/libc/port/gen/nlspath_checks.c index fb63ec8e6a..f06b564cb0 100644 --- a/usr/src/lib/libc/port/gen/nlspath_checks.c +++ b/usr/src/lib/libc/port/gen/nlspath_checks.c @@ -24,8 +24,6 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" - #include "lint.h" #include "mtlib.h" #include <string.h> @@ -626,7 +624,7 @@ clean_env(void) else if (issetugid()) { /* Found and set-uid, clean */ int off = 1; - for (p++; (p[-off] = p[0]) != '\0'; p++) + for (p++; (p[-off] = p[0]) != NULL; p++) if (**p == 'N' && nvmatch("NLSPATH", *p) != NULL) off++; |