aboutsummaryrefslogtreecommitdiffstats
path: root/src/storage
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 14:31:00 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 14:34:03 +0100
commit163597ef6939e4250afafe12f821aa732b1fc2b7 (patch)
tree0c69d95f66789dd27788e28638a99d3a32956eef /src/storage
parent95f84afd338a9333b2fcf05dc171ce1dad6fbe7c (diff)
downloadmpd-163597ef6939e4250afafe12f821aa732b1fc2b7.tar.gz
mpd-163597ef6939e4250afafe12f821aa732b1fc2b7.tar.xz
mpd-163597ef6939e4250afafe12f821aa732b1fc2b7.zip
db/simple: fix implicit nullptr/bool conversion
Return false on error, not nullptr.
Diffstat (limited to 'src/storage')
-rw-r--r--src/storage/plugins/NfsStorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/plugins/NfsStorage.cxx b/src/storage/plugins/NfsStorage.cxx
index 823d662c5..324b40b6f 100644
--- a/src/storage/plugins/NfsStorage.cxx
+++ b/src/storage/plugins/NfsStorage.cxx
@@ -288,7 +288,7 @@ NfsStorage::GetInfo(const char *uri_utf8, gcc_unused bool follow,
return false;
if (!WaitConnected(error))
- return nullptr;
+ return false;
NfsGetInfoOperation operation(*connection, path.c_str(), info);
return operation.Run(error);