diff --git a/contrib/ldapc++/src/LDAPUrl.cpp b/contrib/ldapc++/src/LDAPUrl.cpp index c6acaba4e0..0ff8c7e582 100644 --- a/contrib/ldapc++/src/LDAPUrl.cpp +++ b/contrib/ldapc++/src/LDAPUrl.cpp @@ -195,8 +195,7 @@ void LDAPUrl::parseUrl() // no hostname and port startpos++; } else { - std::string::size_type hostend; - std::string::size_type portstart; + std::string::size_type hostend, portstart=0; pos = m_urlString.find('/', startpos); // IPv6 Address?