[SCM] calf/master: Don't crash on failure of the save operation.
js at users.alioth.debian.org
js at users.alioth.debian.org
Tue May 7 15:40:31 UTC 2013
The following commit has been merged in the master branch:
commit dd20ac1dd59f3af28e533f2f98c25d1b55693a1b
Author: Krzysztof Foltman <wdev at foltman.com>
Date: Mon Dec 27 00:17:25 2010 +0000
Don't crash on failure of the save operation.
diff --git a/src/host_session.cpp b/src/host_session.cpp
index 9721dea..c5b65e8 100644
--- a/src/host_session.cpp
+++ b/src/host_session.cpp
@@ -404,7 +404,8 @@ char *host_session::save_file(const char *name)
if (!f || 1 != fwrite(data.c_str(), data.length(), 1, f))
{
int e = errno;
- fclose(f);
+ if (f)
+ fclose(f);
return strdup(strerror(e));
}
if (fclose(f))
--
calf audio plugins packaging
More information about the pkg-multimedia-commits
mailing list