From 7c81679557f8c92ebb8afd32548fe0092b32d342 Mon Sep 17 00:00:00 2001 From: kpfleming Date: Sat, 1 Aug 2009 01:03:07 +0000 Subject: Merged revisions 209759 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r209759 | kpfleming | 2009-07-31 19:52:00 -0500 (Fri, 31 Jul 2009) | 7 lines Minor changes inspired by testing with latest GCC. The latest GCC (what will become 4.5.x) has a few new warnings, that in these cases found some either downright buggy code, or at least seriously poorly designed code that could be improved. ........ git-svn-id: http://svn.digium.com/svn/asterisk/trunk@209760 f38db490-d61c-443f-a65b-d21fe96a405b --- pbx/pbx_config.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'pbx') diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c index cb89fd7d4..990c4db97 100644 --- a/pbx/pbx_config.c +++ b/pbx/pbx_config.c @@ -1440,7 +1440,7 @@ static int pbx_load_config(const char *config_file) goto process_extension; } } else if (!strcasecmp(v->name, "exten")) { - int ipri = -2; + int ipri; char *plus, *firstp; char *pri, *appl, *data, *cidmatch; @@ -1452,6 +1452,7 @@ static int pbx_load_config(const char *config_file) pbx_substitute_variables_helper(NULL, ext, realext, sizeof(realext) - 1); ast_copy_string(lastextension, realext, sizeof(lastextension)); process_extension: + ipri = -2; if ((cidmatch = strchr(realext, '/'))) { *cidmatch++ = '\0'; ast_shrink_phone_number(cidmatch); -- cgit v1.2.3