[asterisk-commits] dvossel: trunk r272014 - /trunk/pbx/pbx_config.c
SVN commits to the Asterisk project
asterisk-commits at lists.digium.com
Tue Jun 22 17:11:54 CDT 2010
Author: dvossel
Date: Tue Jun 22 17:11:50 2010
New Revision: 272014
URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=272014
Log:
fixes issue with 'dialplan remove extension blah' segfaulting with tab completion
(closes issue #17440)
Reported by: kobaz
Modified:
trunk/pbx/pbx_config.c
Modified: trunk/pbx/pbx_config.c
URL: http://svnview.digium.com/svn/asterisk/trunk/pbx/pbx_config.c?view=diff&rev=272014&r1=272013&r2=272014
==============================================================================
--- trunk/pbx/pbx_config.c (original)
+++ trunk/pbx/pbx_config.c Tue Jun 22 17:11:50 2010
@@ -455,7 +455,7 @@
} 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 at context */
@@ -467,7 +467,6 @@
*p = '\0';
le = strlen(exten);
lc = strlen(context);
- lcid = strlen(cid);
len = strlen(a->word);
if (le == 0 || lc == 0)
goto error3;
More information about the asterisk-commits
mailing list