Skip to content

Commit

Permalink
9028 libc: comparison between pointer and zero character constant
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
tsoome authored and Dan McDonald committed Feb 5, 2018
1 parent 36a64e6 commit 9a67df4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions usr/src/lib/libc/port/gen/nlspath_checks.c
Expand Up @@ -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>
Expand Down Expand Up @@ -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++;

Expand Down

0 comments on commit 9a67df4

Please sign in to comment.