Commit f0f4e35e authored by Per Cederqvist's avatar Per Cederqvist
Browse files

pre_sync now closes file_b if a sync already was in progress.

parent d3dfdc1a
......@@ -1134,7 +1134,12 @@ pre_sync(void)
}
else
log("pre_sync: datafile not clean. No backup taken.\n");
if ( file_b != NULL )
{
log("pre_sync: Save in progress aborted.\n");
fclose(file_b);
}
if ( (file_b=fopen(datafilename, "wb") ) == NULL )
{
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment