Skip to content

Commit

Permalink
fix build warning
Browse files Browse the repository at this point in the history
warning: address of array 'rr->srv_record' will always evaluate to 'true'
  • Loading branch information
seven1240 committed Sep 15, 2021
1 parent 9c7443c commit 589c982
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsofia-sip-ua/stun/stun_dns.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ static void priv_sres_cb(stun_dns_lookup_t *self,

for (i = 0; answer && answer[i] != NULL; i++) {
sres_srv_record_t *rr = (sres_srv_record_t *) answer[i]->sr_srv;
if (rr && rr->srv_record && rr->srv_record->r_type == sres_type_srv) {
if (rr && rr->srv_record->r_type == sres_type_srv) {
const char *tcp_name = STUN_SRV_SERVICE_TCP;
const char *udp_name = STUN_SRV_SERVICE_UDP;
if ((self->stun_state & stun_dns_tls) == 0 &&
Expand Down

0 comments on commit 589c982

Please sign in to comment.