[asterisk-commits] russell: branch russell/events r62290 - /team/russell/events/apps/

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Sat Apr 28 13:43:25 MST 2007


Author: russell
Date: Sat Apr 28 15:43:25 2007
New Revision: 62290

URL: http://svn.digium.com/view/asterisk?view=rev&rev=62290
Log:
Remove some pointless code

Modified:
    team/russell/events/apps/app_voicemail.c

Modified: team/russell/events/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/team/russell/events/apps/app_voicemail.c?view=diff&rev=62290&r1=62289&r2=62290
==============================================================================
--- team/russell/events/apps/app_voicemail.c (original)
+++ team/russell/events/apps/app_voicemail.c Sat Apr 28 15:43:25 2007
@@ -7013,7 +7013,6 @@
 static struct ast_vm_user *find_or_create(char *context, char *mbox)
 {
 	struct ast_vm_user *vmu;
-	char *full_mailbox;
 
 	AST_LIST_TRAVERSE(&users, vmu, list) {
 		if (ast_test_flag((&globalflags), VM_SEARCH) && !strcasecmp(mbox, vmu->mailbox))
@@ -7030,10 +7029,7 @@
 	
 	ast_copy_string(vmu->context, context, sizeof(vmu->context));
 	ast_copy_string(vmu->mailbox, mbox, sizeof(vmu->mailbox));
-	full_mailbox = alloca(strlen(context) + strlen(mbox) + 2);
-	strcpy(full_mailbox, mbox);
-	strcat(full_mailbox, "@");
-	strcat(full_mailbox, context);
+
 	AST_LIST_INSERT_TAIL(&users, vmu, list);
 	
 	return vmu;



More information about the asterisk-commits mailing list