FS-6030: --resolve fix variable scoping issue for more aggressive optimizer

This commit is contained in:
Michael Jerris 2014-02-05 08:45:59 -05:00
parent 3ecb504fda
commit b6270f4d70
2 changed files with 3 additions and 2 deletions

View File

@ -1 +1 @@
Fri Jan 31 20:16:45 CDT 2014
Wed Feb 5 08:45:23 EST 2014

View File

@ -2142,6 +2142,7 @@ int nta_agent_add_tport(nta_agent_t *self,
char const * const * tports = tports_sip;
int error;
ta_list ta;
char *tps[9] = {0};
if (self == NULL) {
su_seterrno(EINVAL);
@ -2187,7 +2188,7 @@ int nta_agent_add_tport(nta_agent_t *self,
if (url->url_params) {
if (url_param(url->url_params, "transport", tp, sizeof(tp)) > 0) {
if (strchr(tp, ',')) {
int i; char *t, *tps[9] = {0};
int i; char *t;
/* Split tp into transports */
for (i = 0, t = tp; t && i < 8; i++) {