9243 nsswitch/ldap: comparison between pointer and zero character constant

Review Request #936 — Created March 6, 2018 and submitted

tsoome
illumos-gate
9243
58679e7...
general
../common/getprinter.c:139:29: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
         (attr->attrvalue[j] == '\0')) {
                             ^~
../common/getprinter.c:139:10: note: did you mean to dereference the pointer?
         (attr->attrvalue[j] == '\0')) {
          ^
cc1: all warnings being treated as errors


  • 0
  • 0
  • 1
  • 0
  • 1
Description From Last Updated
seeemef@mac.com
  1. 
      
  2. Perhaps the test of attr->attrvalue[j] should just be removed given the strlen check?

  3. 
      
tsoome
seeemef@mac.com
  1. Ship It!
  2. 
      
citrus
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...