FS-11278 #resolve fix if clause does not guard compiler warning

This commit is contained in:
Seven Du 2018-07-24 11:52:30 -05:00
parent d5af929660
commit 9a0a594d07
3 changed files with 12 additions and 5 deletions

View File

@ -1600,7 +1600,7 @@ int nua_client_next_request(nua_client_request_t *cr, int invite)
for (; cr; cr = cr->cr_next) {
if (cr->cr_method == sip_method_cancel)
continue;
break;
break;
}
if (cr && !nua_client_request_in_progress(cr)) {

View File

@ -1858,7 +1858,9 @@ int sdp_rtpmap_match(sdp_rtpmap_t const *a, sdp_rtpmap_t const *b)
if (aparam == bparam)
return 1;
if (!aparam) aparam = "1"; if (!bparam) bparam = "1";
if (!aparam) aparam = "1";
if (!bparam) bparam = "1";
if (!su_casematch(aparam, bparam))
return 0;
@ -1895,7 +1897,10 @@ sdp_rtpmap_t *sdp_rtpmap_find_matching(sdp_rtpmap_t const *list,
break;
}
if (!lparam) lparam = "1"; if (!rparam) rparam = "1";
if (!lparam) lparam = "1";
if (!rparam) rparam = "1";
if (!su_casematch(lparam, rparam))
continue;

View File

@ -170,10 +170,12 @@ void su_socket_port_deinit(su_port_t *self)
self->sup_mbox_index = 0;
if (self->sup_mbox[0] && self->sup_mbox[0] != INVALID_SOCKET)
su_close(self->sup_mbox[0]); self->sup_mbox[0] = INVALID_SOCKET;
su_close(self->sup_mbox[0]);
self->sup_mbox[0] = INVALID_SOCKET;
#if HAVE_SOCKETPAIR
if (self->sup_mbox[1] && self->sup_mbox[1] != INVALID_SOCKET)
su_close(self->sup_mbox[1]); self->sup_mbox[1] = INVALID_SOCKET;
su_close(self->sup_mbox[1]);
self->sup_mbox[1] = INVALID_SOCKET;
#endif
su_pthread_port_deinit(self);