aboutsummaryrefslogtreecommitdiffstats
path: root/src/output/ShoutOutputPlugin.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2014-12-26 13:50:54 +0100
committerMax Kellermann <max@duempel.org>2014-12-26 13:50:54 +0100
commit665031467a55a32be306191514ac81f73ac41de7 (patch)
treed935344efd13dcb07c933083845c3f74e31745d5 /src/output/ShoutOutputPlugin.cxx
parentdf3317110766f659b6cc3e80b61c5fd88c4ce6b3 (diff)
downloadmpd-665031467a55a32be306191514ac81f73ac41de7.tar.gz
mpd-665031467a55a32be306191514ac81f73ac41de7.tar.xz
mpd-665031467a55a32be306191514ac81f73ac41de7.zip
db/proxy, output/shout: fix implicit nullptr/bool conversion
Return false on error, not nullptr.
Diffstat (limited to '')
-rw-r--r--src/output/ShoutOutputPlugin.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/output/ShoutOutputPlugin.cxx b/src/output/ShoutOutputPlugin.cxx
index 19f2b61cd..abef8d0b7 100644
--- a/src/output/ShoutOutputPlugin.cxx
+++ b/src/output/ShoutOutputPlugin.cxx
@@ -114,7 +114,7 @@ ShoutOutput::Configure(const config_param &param, Error &error)
if (!audio_format.IsFullyDefined()) {
error.Set(config_domain,
"Need full audio format specification");
- return nullptr;
+ return false;
}
const char *host = require_block_string(param, "host");