From 43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 11 Aug 2014 22:54:46 +0200 Subject: db/simple: check for I/O errors in Load() --- src/db/plugins/simple/SimpleDatabasePlugin.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/db/plugins/simple/SimpleDatabasePlugin.cxx b/src/db/plugins/simple/SimpleDatabasePlugin.cxx index 3048194cd..9fd88ab83 100644 --- a/src/db/plugins/simple/SimpleDatabasePlugin.cxx +++ b/src/db/plugins/simple/SimpleDatabasePlugin.cxx @@ -187,7 +187,7 @@ SimpleDatabase::Load(Error &error) if (file.HasFailed()) return false; - if (!db_load_internal(file, *root, error)) + if (!db_load_internal(file, *root, error) || !file.Check(error)) return false; struct stat st; -- cgit v1.2.3