9137 libsip: comparison between pointer and zero character constant

Review Request #873 - Created Feb. 19, 2018 and submitted

Information
Toomas Soome
illumos-gate
9137
03fec8e...
Reviewers
general
../common/sip_add_hdrs.c: In function 'sip_add_warning':
../common/sip_add_hdrs.c:1021:29: error: comparison between pointer and zero character constant [-Werror=pointer-compare]
      addr[0] == '\0' || msg == '\0' || code < 100 || code > 999) {
                             ^~
../common/sip_add_hdrs.c:1021:25: note: did you mean to dereference the pointer?
      addr[0] == '\0' || msg == '\0' || code < 100 || code > 999) {
                         ^
cc1: all warnings being treated as errors

  
Andy Fiddaman
Sebastian Wiedenroth
Toomas Soome
Review request changed

Status: Closed (submitted)

Loading...