소스 검색

modules/topos: fix warning: comparison between pointer and integer [enabled by default]

Ovidiu Sas 9 년 전
부모
커밋
b4d1206fd5
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/topos/tps_msg.c

+ 1 - 1
modules/topos/tps_msg.c

@@ -382,7 +382,7 @@ int tps_pack_request(sip_msg_t *msg, tps_data_t *ptsd)
 				ptsd->bs_contact.s = ptsd->cp;
 				ptsd->bs_contact.len = rr->nameaddr.uri.len;
 				if(strnstr(ptsd->bs_contact.s, ";r2=on",
-							ptsd->bs_contact.len)==NULL) {
+							ptsd->bs_contact.len)==0) {
 					LM_DBG("single record routing by proxy\n");
 					ptsd->as_contact.s = ptsd->cp;
 					ptsd->as_contact.len = rr->nameaddr.uri.len;