From be7282691765839c1ff50fc3c4385b1c5db91982 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Tue, 16 Feb 2010 11:55:05 +0000 Subject: [PATCH] uninitialized variable --- contrib/ldapc++/src/LDAPUrl.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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? -- 2.39.5