db/proxy, output/shout: fix implicit nullptr/bool conversion

Return false on error, not nullptr.
This commit is contained in:
Max Kellermann
2014-12-26 13:50:54 +01:00
parent df33171107
commit 665031467a
2 changed files with 4 additions and 4 deletions

View File

@@ -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");