FS-11278 #resolve fix if clause does not guard compiler warning
This commit is contained in:
parent
d5af929660
commit
9a0a594d07
|
@ -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;
|
||||
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue