diff options
author | Max Kellermann <max@duempel.org> | 2014-12-26 14:31:00 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-26 14:34:03 +0100 |
commit | 163597ef6939e4250afafe12f821aa732b1fc2b7 (patch) | |
tree | 0c69d95f66789dd27788e28638a99d3a32956eef /src/storage | |
parent | 95f84afd338a9333b2fcf05dc171ce1dad6fbe7c (diff) |
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.cxx | 2 |
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); |