aboutsummaryrefslogtreecommitdiffstats
path: root/src/db/plugins/simple
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-08-11 22:54:46 +0200
committerMax Kellermann <max@duempel.org>2014-08-11 22:54:46 +0200
commit43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6 (patch)
treed3c05be68efc01e9ba4267f7fc6ad14fed31016b /src/db/plugins/simple
parent8283f23651580c57e199f7547f2c0a0512e868be (diff)
downloadmpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.tar.gz
mpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.tar.xz
mpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.zip
db/simple: check for I/O errors in Load()
Diffstat (limited to 'src/db/plugins/simple')
-rw-r--r--src/db/plugins/simple/SimpleDatabasePlugin.cxx2
1 files changed, 1 insertions, 1 deletions
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;