[svn-commits] mjordan: branch 1.8 r333354 - /branches/1.8/apps/app_voicemail.c

SVN commits to the Digium repositories svn-commits at lists.digium.com
Fri Aug 26 09:36:29 CDT 2011


Author: mjordan
Date: Fri Aug 26 09:36:25 2011
New Revision: 333354

URL: http://svnview.digium.com/svn/asterisk?view=rev&rev=333354
Log:
Fixed incorrect pointer copy to structure copy in revision 333339

Modified:
    branches/1.8/apps/app_voicemail.c

Modified: branches/1.8/apps/app_voicemail.c
URL: http://svnview.digium.com/svn/asterisk/branches/1.8/apps/app_voicemail.c?view=diff&rev=333354&r1=333353&r2=333354
==============================================================================
--- branches/1.8/apps/app_voicemail.c (original)
+++ branches/1.8/apps/app_voicemail.c Fri Aug 26 09:36:25 2011
@@ -1454,7 +1454,7 @@
 	if (cur) {
 		/* Make a copy, so that on a reload, we have no race */
 		if ((vmu = (ivm ? ivm : ast_malloc(sizeof(*vmu))))) {
-			vmu = cur;
+			*vmu = *cur;
 			if (!ivm) {
 				vmu->emailbody = ast_strdup(cur->emailbody);
 				vmu->emailsubject = ast_strdup(cur->emailsubject);




More information about the svn-commits mailing list