Commit 83cc6c08 authored by Max Kellermann's avatar Max Kellermann

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

Don't need to clear the caller-specified one.
parent 304d78a4
......@@ -208,11 +208,11 @@ try {
borrowed_song_count = 0;
#endif
if (!Load(error)) {
delete root;
Error error2;
if (!Load(error2)) {
LogError(error2);
LogError(error);
error.Clear();
delete root;
if (!Check(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