diff options
author | Max Kellermann <max@musicpd.org> | 2016-09-05 11:32:20 +0200 |
---|---|---|
committer | Max Kellermann <max@musicpd.org> | 2016-09-05 11:32:20 +0200 |
commit | 135662d6b0714d123afa805a62462fff917943b5 (patch) | |
tree | fc9209fec7c57693c771f4501a61dcca456c7063 /src/neighbor/plugins | |
parent | a69c3c1848ec324975faa0dd14f0e7750c46bfee (diff) |
lib/smbclient/Init: throw std::runtime_error on error
Diffstat (limited to 'src/neighbor/plugins')
-rw-r--r-- | src/neighbor/plugins/SmbclientNeighborPlugin.cxx | 3 |
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); } |