[asterisk-commits] russell: trunk r167546 - in /trunk: ./ main/file.c

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Jan 7 16:20:31 CST 2009


Author: russell
Date: Wed Jan  7 16:20:31 2009
New Revision: 167546

URL: http://svn.digium.com/view/asterisk?view=rev&rev=167546
Log:
Merged revisions 167545 via svnmerge from 
https://origsvn.digium.com/svn/asterisk/branches/1.4

........
r167545 | russell | 2009-01-07 16:19:47 -0600 (Wed, 07 Jan 2009) | 2 lines

Only try to close the file if one was actually opened

........

Modified:
    trunk/   (props changed)
    trunk/main/file.c

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

Modified: trunk/main/file.c
URL: http://svn.digium.com/view/asterisk/trunk/main/file.c?view=diff&rev=167546&r1=167545&r2=167546
==============================================================================
--- trunk/main/file.c (original)
+++ trunk/main/file.c Wed Jan  7 16:20:31 2009
@@ -318,7 +318,8 @@
 		free(f->realfilename);
 	if (f->fmt->close)
 		f->fmt->close(f);
-	fclose(f->f);
+	if (f->f)
+		fclose(f->f);
 	if (f->vfs)
 		ast_closestream(f->vfs);
 	if (f->orig_chan_name)




More information about the asterisk-commits mailing list