Support sockets without a socket inode

wilder
Andrzej Rybczak 5 years ago
parent b023c737e3
commit 40e4f98ee8
  1. 2
      src/mpdpp.cpp

@ -147,7 +147,7 @@ unsigned Connection::Version() const
void Connection::SetHostname(const std::string &host)
{
size_t at = host.find("@");
if (at != std::string::npos)
if (at != 0 && at != std::string::npos)
{
m_password = host.substr(0, at);
m_host = host.substr(at+1);

Loading…
Cancel
Save