From: Ralf Haferkamp Date: Tue, 16 Feb 2010 11:55:05 +0000 (+0000) Subject: uninitialized variable X-Git-Tag: MIGRATION_CVS2GIT~694 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=be7282691765839c1ff50fc3c4385b1c5db91982;p=openldap uninitialized variable --- 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?