Commit edf9db78 authored by Daniel Elstner's avatar Daniel Elstner
Browse files

Move the assignment of 'false' to fileinfo->load_failed to the very end of

* src/fileio.cc (load_file): Move the assignment of 'false' to
fileinfo->load_failed to the very end of the function, because
there is a tiny chance that one of the other assignments throws
an exception.
parent 231b4cb1
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/fileio.cc (load_file): Move the assignment of 'false' to
fileinfo->load_failed to the very end of the function, because
there is a tiny chance that one of the other assignments throws
an exception.
2004-06-01 Daniel Elstner <daniel.elstner@gmx.net>
* src/filetree.cc (FileTree::find_increment_file_count): There
......
......@@ -152,9 +152,9 @@ void load_file(const FileInfoPtr& fileinfo, const std::string& fallback_encoding
buffer->set_modified(false);
fileinfo->load_failed = false;
fileinfo->encoding = encoding;
fileinfo->buffer = buffer;
fileinfo->load_failed = false;
}
void save_file(const FileInfoPtr& fileinfo)
......
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