[Asterisk-cvs] asterisk/pbx pbx_config.c,1.35,1.36

citats at lists.digium.com citats at lists.digium.com
Sat May 1 01:43:34 CDT 2004


Update of /usr/cvsroot/asterisk/pbx
In directory mongoose.digium.com:/home/citats/cvs/asterisk/pbx

Modified Files:
	pbx_config.c 
Log Message:
Fix 'remove extension' completion


Index: pbx_config.c
===================================================================
RCS file: /usr/cvsroot/asterisk/pbx/pbx_config.c,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- pbx_config.c	23 Feb 2004 05:37:24 -0000	1.35
+++ pbx_config.c	1 May 2004 05:50:51 -0000	1.36
@@ -526,17 +526,15 @@
 						 (exten && !strncmp(ast_get_extension_name(e), exten,
 						                    strlen(exten))) ) { /* if input, compare ... */
 						if (++which > state) {
-							/* is there some context input? if not, throw back
-							 * exten at context, if yes throw back only context ...
+							/* If there is an extension then return
+							 * exten at context.
 							 */
-							if (!context) {
+							if (exten) {
 								ret = malloc(strlen(ast_get_extension_name(e)) +
 									strlen(ast_get_context_name(c)) + 2);
 								if (ret)
 									sprintf(ret, "%s@%s", ast_get_extension_name(e),
 										ast_get_context_name(c));
-							} else {
-								ret = strdup(ast_get_context_name(c));
 							}
 							free(exten); free(context);
 




More information about the svn-commits mailing list