9028 libc: comparison between pointer and zero character constant

Review Request #830 - Created Feb. 5, 2018 and submitted

Information
Toomas Soome
illumos-gate
9028
8785a03...
Reviewers
general
../port/gen/nlspath_checks.c: In function 'clean_env':
../port/gen/nlspath_checks.c:629:30: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
   for (p++; (p[-off] = p[0]) != '\0'; p++)
                              ^~
../port/gen/nlspath_checks.c:629:13: note: did you mean to dereference the pointer?
   for (p++; (p[-off] = p[0]) != '\0'; p++)
             ^
cc1: all warnings being treated as errors

  
Yuri Pankov
Andy Fiddaman
Rob Johnston
Toomas Soome
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...