]> git.sur5r.net Git - openldap/commitdiff
uninitialized variable
authorRalf Haferkamp <ralf@openldap.org>
Tue, 16 Feb 2010 11:55:05 +0000 (11:55 +0000)
committerRalf Haferkamp <ralf@openldap.org>
Tue, 16 Feb 2010 11:55:05 +0000 (11:55 +0000)
contrib/ldapc++/src/LDAPUrl.cpp

index c6acaba4e04ecb6fbec4d9bb644af0301f797be9..0ff8c7e5827b679500186497339d6192e10a345b 100644 (file)
@@ -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?