From 163597ef6939e4250afafe12f821aa732b1fc2b7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 26 Dec 2014 14:31:00 +0100 Subject: db/simple: fix implicit nullptr/bool conversion Return false on error, not nullptr. --- src/storage/plugins/NfsStorage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/storage/plugins/NfsStorage.cxx') 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); -- cgit v1.2.3