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

Don't check ferror(NULL) when the new file has been

succesfully saved and closed.
parent 66240d16
......@@ -1546,7 +1546,7 @@ sync_part(void)
restart_kom("sync(): sync_state==%d", sync_state);
}
if ( ferror(file_b) != 0)
if ( file_b != NULL && ferror(file_b) != 0)
sync_state = sync_error;
return FALSE;
......
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