[asterisk-commits] tilghman: trunk r174503 - in /trunk/apps: app_stack.c app_voicemail.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Tue Feb 10 01:06:29 CST 2009


Author: tilghman
Date: Tue Feb 10 01:06:29 2009
New Revision: 174503

URL: http://svn.digium.com/svn-view/asterisk?view=rev&rev=174503
Log:
Fix0ring build

Modified:
    trunk/apps/app_stack.c
    trunk/apps/app_voicemail.c

Modified: trunk/apps/app_stack.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_stack.c?view=diff&rev=174503&r1=174502&r2=174503
==============================================================================
--- trunk/apps/app_stack.c (original)
+++ trunk/apps/app_stack.c Tue Feb 10 01:06:29 2009
@@ -599,7 +599,9 @@
 
 		if ((res = pbx_exec(chan, theapp, gosub_args)) == 0) {
 			struct ast_pbx *pbx = chan->pbx;
-			struct ast_pbx_args args = { .no_hangup_chan = 1 };
+			struct ast_pbx_args args;
+			memset(&args, 0, sizeof(args));
+			args.no_hangup_chan = 1;
 			/* Suppress warning about PBX already existing */
 			chan->pbx = NULL;
 			ast_agi_send(agi->fd, chan, "100 result=0 Trying...\n");
@@ -636,8 +638,6 @@
 
 static int unload_module(void)
 {
-	struct ast_context *con;
-
 	if (ast_agi_unregister) {
 		 ast_agi_unregister(ast_module_info->self, &gosub_agi_command);
 	}
@@ -654,8 +654,6 @@
 
 static int load_module(void)
 {
-	struct ast_context *con;
-
 	if (ast_agi_register) {
 		 ast_agi_register(ast_module_info->self, &gosub_agi_command);
 	}

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/svn-view/asterisk/trunk/apps/app_voicemail.c?view=diff&rev=174503&r1=174502&r2=174503
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Tue Feb 10 01:06:29 2009
@@ -1117,8 +1117,8 @@
 			ast_copy_string(retval->imapuser, var->value, sizeof(retval->imapuser));
 		} else if (!strcasecmp(var->name, "imappassword") || !strcasecmp(var->name, "imapsecret")) {
 			ast_copy_string(retval->imappassword, var->value, sizeof(retval->imappassword));
-		} else if (!strcasecmp(tmp->name, "imapvmshareid")) {
-			ast_copy_string(retval->imapvmshareid, tmp->value, sizeof(retval->imapvmshareid));
+		} else if (!strcasecmp(var->name, "imapvmshareid")) {
+			ast_copy_string(retval->imapvmshareid, var->value, sizeof(retval->imapvmshareid));
 #endif
 		} else
 			apply_option(retval, var->name, var->value);




More information about the asterisk-commits mailing list