9137 libsip: comparison between pointer and zero character constant

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

tsoome
illumos-gate
9137
03fec8e...
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


citrus
  1. Ship It!
  2. 
      
wiedi
  1. Ship It!
  2. 
      
tsoome
Review request changed

Status: Closed (submitted)

Loading...