9028 libc: comparison between pointer and zero character constant

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

tsoome
illumos-gate
9028
8785a03...
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


yuripv
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
rejohnst
  1. Ship It!
  2. 
      
tsoome
tsoome
Review request changed

Status: Closed (submitted)

Loading...