Commit 2a7ad74a authored by Per Cederqvist's avatar Per Cederqvist
Browse files

St{ng inte fil B tv} g}nger efter en lyckad sparning.

N}gra nya log-meddelanden i save_one_text n{r man misslyckas st{nga fil B.
parent bf4b6a91
......@@ -1406,6 +1406,7 @@ save_one_text(void)
{
if ( ferror(file_b) != 0 )
{
log ("save_one_text(): ferror() detected.\n");
sync_state = sync_error;
return;
}
......@@ -1413,6 +1414,7 @@ save_one_text(void)
rewind(file_b);
if ( ferror(file_b) != 0 )
{
log ("save_one_text(): rewind failed.\n");
sync_state = sync_error;
return;
}
......@@ -1420,6 +1422,7 @@ save_one_text(void)
fprintf(file_b, "CLEAN");
if ( ferror(file_b) != 0 )
{
log ("save_one_text(): fprintf(CLEAN) failed.\n");
sync_state = sync_error;
return;
}
......@@ -1435,6 +1438,8 @@ save_one_text(void)
return;
}
file_b = NULL;
sync_state = sync_ready;
BUG(("Sync ready\n"));
......
Supports Markdown
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