db/simple: use second Error instance in Open()

Don't need to clear the caller-specified one.
This commit is contained in:
Max Kellermann 2016-02-28 11:38:22 +01:00
parent 304d78a4c8
commit 83cc6c0835

View File

@ -208,11 +208,11 @@ try {
borrowed_song_count = 0; borrowed_song_count = 0;
#endif #endif
if (!Load(error)) { Error error2;
delete root; if (!Load(error2)) {
LogError(error2);
LogError(error); delete root;
error.Clear();
if (!Check(error)) if (!Check(error))
return false; return false;