aboutsummaryrefslogtreecommitdiffstats
path: root/pbx
diff options
context:
space:
mode:
authordvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 22:14:15 +0000
committerdvossel <dvossel@f38db490-d61c-443f-a65b-d21fe96a405b>2010-06-22 22:14:15 +0000
commitbcee8687d37404bd6aa45aac07415a8bd2273004 (patch)
tree995a3281a5f06b45cd6286817997d3a512257542 /pbx
parent1486e7a8d01cae1a1f2fbc8540fd017b4f739902 (diff)
Merged revisions 272014 via svnmerge from
https://origsvn.digium.com/svn/asterisk/trunk ........ r272014 | dvossel | 2010-06-22 17:11:50 -0500 (Tue, 22 Jun 2010) | 5 lines fixes issue with 'dialplan remove extension blah' segfaulting with tab completion (closes issue #17440) Reported by: kobaz ........ git-svn-id: http://svn.digium.com/svn/asterisk/branches/1.6.2@272015 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'pbx')
-rw-r--r--pbx/pbx_config.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/pbx/pbx_config.c b/pbx/pbx_config.c
index 66b29be83..ae409edfd 100644
--- a/pbx/pbx_config.c
+++ b/pbx/pbx_config.c
@@ -455,7 +455,7 @@ static char *complete_dialplan_remove_extension(struct ast_cli_args *a)
} else if (a->pos == 4) { /* 'dialplan remove extension EXT _X_' (priority) */
char *exten = NULL, *context, *cid, *p;
struct ast_context *c;
- int le, lc, lcid, len;
+ int le, lc, len;
const char *s = skip_words(a->line, 3); /* skip 'dialplan' 'remove' 'extension' */
int i = split_ec(s, &exten, &context, &cid); /* parse ext@context */
@@ -467,7 +467,6 @@ static char *complete_dialplan_remove_extension(struct ast_cli_args *a)
*p = '\0';
le = strlen(exten);
lc = strlen(context);
- lcid = strlen(cid);
len = strlen(a->word);
if (le == 0 || lc == 0)
goto error3;