From: Joshua Colp Date: Wed, 6 Jun 2007 23:41:37 +0000 (+0000) Subject: Merged revisions 67924 via svnmerge from X-Git-Tag: 1.6.0-beta1~3^2~2447 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d777d9a850f9049ba39ceebc63310a032f78fac0;p=thirdparty%2Fasterisk.git Merged revisions 67924 via svnmerge from https://origsvn.digium.com/svn/asterisk/branches/1.4 ........ r67924 | file | 2007-06-06 19:38:15 -0400 (Wed, 06 Jun 2007) | 2 lines Properly handle cases where a stream can't be written to. (issue #9757 reported by junky) ........ git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@67925 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/main/file.c b/main/file.c index a7c5bfe93c..f315bfcd22 100644 --- a/main/file.c +++ b/main/file.c @@ -944,6 +944,8 @@ struct ast_filestream *ast_writefile(const char *filename, const char *type, con } if (fs) ast_free(fs); + fs = NULL; + continue; } fs->trans = NULL; fs->fmt = f;