13
0

SMF::end_write() is a no-op if there is no _smf structure

This commit is contained in:
Paul Davis 2015-04-20 22:46:39 -04:00
parent 67411281ad
commit 63ac1b1464

View File

@ -400,6 +400,11 @@ void
SMF::end_write(string const & path) THROW_FILE_ERROR
{
Glib::Threads::Mutex::Lock lm (_smf_lock);
if (!_smf) {
return;
}
FILE* f = fopen (path.c_str(), "w+");
if (f == 0) {
throw FileError (path);