diff options
author | Max Kellermann <max@duempel.org> | 2014-12-26 14:44:47 +0100 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2014-12-26 14:44:47 +0100 |
commit | 2983c2a24f9c06a7ce5bd7ece004e0c245740c2b (patch) | |
tree | 8a6389d3afd3ba89dcf58dcf9d99f42aed0a86d5 /src | |
parent | 412bedb697c66c809652510951e1ccdb5319d0bb (diff) | |
download | mpd-2983c2a24f9c06a7ce5bd7ece004e0c245740c2b.tar.gz mpd-2983c2a24f9c06a7ce5bd7ece004e0c245740c2b.tar.xz mpd-2983c2a24f9c06a7ce5bd7ece004e0c245740c2b.zip |
output/jack: fix implicit nullptr/bool conversion
Return false on error, not nullptr.
Diffstat (limited to 'src')
-rw-r--r-- | src/output/plugins/JackOutputPlugin.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/output/plugins/JackOutputPlugin.cxx b/src/output/plugins/JackOutputPlugin.cxx index ba05e6c5e..f3a30b644 100644 --- a/src/output/plugins/JackOutputPlugin.cxx +++ b/src/output/plugins/JackOutputPlugin.cxx @@ -390,7 +390,7 @@ JackOutput::Configure(const config_param ¶m, Error &error) const char *value = param.GetBlockValue("source_ports", "left,right"); num_source_ports = parse_port_list(value, source_ports, error); if (num_source_ports == 0) - return nullptr; + return false; /* configure the destination ports */ @@ -408,7 +408,7 @@ JackOutput::Configure(const config_param ¶m, Error &error) num_destination_ports = parse_port_list(value, destination_ports, error); if (num_destination_ports == 0) - return nullptr; + return false; } else { num_destination_ports = 0; } |