diff options
author | Max Kellermann <max@duempel.org> | 2014-08-11 22:54:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-08-11 22:54:46 +0200 |
commit | 43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6 (patch) | |
tree | d3c05be68efc01e9ba4267f7fc6ad14fed31016b /src | |
parent | 8283f23651580c57e199f7547f2c0a0512e868be (diff) | |
download | mpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.tar.gz mpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.tar.xz mpd-43f964e28df15d724c7ee7fd5e15b57ae6ce2ef6.zip |
db/simple: check for I/O errors in Load()
Diffstat (limited to 'src')
-rw-r--r-- | src/db/plugins/simple/SimpleDatabasePlugin.cxx | 2 |
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; |