Module: sip-router
Branch: master
Commit: b3c8f92fe48ac90802c989c74c3a34cfea065861
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=b3c8f92…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Thu Apr 18 14:09:09 2013 -0400
dns_cache.c: fix compiler warnings
- warningâsr_sums[*].r_sum may be used uninitialized in this function [-Wuninitialized]
- warningâsr_sums[*].rr may be used uninitialized in this function [-Wuninitialized]
---
dns_cache.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dns_cache.c b/dns_cache.c
index b351490..1243c92 100644
--- a/dns_cache.c
+++ b/dns_cache.c
@@ -2306,6 +2306,7 @@ inline static struct dns_rr* dns_srv_get_nxt_rr(struct
dns_hash_entry* e,
servers_up = atomic_get(dns_servers_up);
#endif
+ memset(r_sums, 0, sizeof(struct r_sums_entry) * MAX_SRV_GRP_IDX);
rand_w=0;
for(rr=e->rr_lst, n=0;rr && (n<*no);rr=rr->next, n++);/* skip *no
records*/