summaryrefslogtreecommitdiff
path: root/src/neighbor/plugins
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2016-09-05 11:32:20 +0200
committerMax Kellermann <max@musicpd.org>2016-09-05 11:32:20 +0200
commit135662d6b0714d123afa805a62462fff917943b5 (patch)
treefc9209fec7c57693c771f4501a61dcca456c7063 /src/neighbor/plugins
parenta69c3c1848ec324975faa0dd14f0e7750c46bfee (diff)
lib/smbclient/Init: throw std::runtime_error on error
Diffstat (limited to 'src/neighbor/plugins')
-rw-r--r--src/neighbor/plugins/SmbclientNeighborPlugin.cxx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
index ea0528d35..32125896a 100644
--- a/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
+++ b/src/neighbor/plugins/SmbclientNeighborPlugin.cxx
@@ -273,8 +273,7 @@ smbclient_neighbor_create(gcc_unused EventLoop &loop,
gcc_unused const ConfigBlock &block,
gcc_unused Error &error)
{
- if (!SmbclientInit(error))
- return nullptr;
+ SmbclientInit();
return new SmbclientNeighborExplorer(listener);
}