Module: sip-router
Branch: 4.0
Commit: 56b8856f84aebd86c4e78232f8f2f37fead7b4f3
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=56b8856…
Author: Ovidiu Sas <osas(a)voipembedded.com>
Committer: Ovidiu Sas <osas(a)voipembedded.com>
Date: Sat Apr 13 15:37:18 2013 -0400
tls: fix compiler warning
- tls_config.c:61:19: warning: �t.val.s� is used uninitialized in this function
[-Wuninitialized]
---
modules/tls/tls_config.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/modules/tls/tls_config.c b/modules/tls/tls_config.c
index fc4a9c0..0083893 100644
--- a/modules/tls/tls_config.c
+++ b/modules/tls/tls_config.c
@@ -58,13 +58,13 @@ static int parse_ipv6(struct ip_addr* ip, cfg_token_t* token,
struct ip_addr* ipv6;
str ip6_str;
- ip6_str.s = t.val.s;
while(1) {
ret = cfg_get_token(&t, st, 0);
if (ret != 0) goto err;
if (t.type == ']') break;
if (t.type != CFG_TOKEN_ALPHA && t.type != ':') goto err;
}
+ ip6_str.s = t.val.s;
ip6_str.len = (int)(long)(t.val.s - ip6_str.s);
ipv6 = str2ip6(&ip6_str);