Commit 43f964e2 authored by Max Kellermann's avatar Max Kellermann

db/simple: check for I/O errors in Load()

parent 8283f236
...@@ -187,7 +187,7 @@ SimpleDatabase::Load(Error &error) ...@@ -187,7 +187,7 @@ SimpleDatabase::Load(Error &error)
if (file.HasFailed()) if (file.HasFailed())
return false; return false;
if (!db_load_internal(file, *root, error)) if (!db_load_internal(file, *root, error) || !file.Check(error))
return false; return false;
struct stat st; struct stat st;
......
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