[asterisk-commits] trunk r23989 - in /trunk: ./ apps/app_voicemail.c

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Mon May 1 12:35:54 MST 2006


Author: bweschke
Date: Mon May  1 14:35:53 2006
New Revision: 23989

URL: http://svn.digium.com/view/asterisk?rev=23989&view=rev
Log:
Merged revisions 23988 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.2

........
r23988 | bweschke | 2006-05-01 14:34:29 -0500 (Mon, 01 May 2006) | 3 lines

 Correct a condition from the prior patch that could happen in rare circumstances and cause a core dump. Thanks Qwell! 


........

Modified:
    trunk/   (props changed)
    trunk/apps/app_voicemail.c

Propchange: trunk/
------------------------------------------------------------------------------
Binary property 'branch-1.2-merged' - no diff available.

Modified: trunk/apps/app_voicemail.c
URL: http://svn.digium.com/view/asterisk/trunk/apps/app_voicemail.c?rev=23989&r1=23988&r2=23989&view=diff
==============================================================================
--- trunk/apps/app_voicemail.c (original)
+++ trunk/apps/app_voicemail.c Mon May  1 14:35:53 2006
@@ -2568,7 +2568,7 @@
 				if (txt && EXISTS(dir,msgnum,fn,chan->language)) {
 					fclose(txt);
 					rename(tmptxtfile, txtfile);
-				} else if (!EXISTS(dir,msgnum,fn,chan->language)) {
+				} else if (txt && !EXISTS(dir,msgnum,fn,chan->language)) {
 					if (option_debug) 
 						ast_log(LOG_DEBUG, "The recorded media file is gone, so we should remove the .txt file too!\n");
 					fclose(txt);



More information about the asterisk-commits mailing list