]> git.sur5r.net Git - openldap/blobdiff - contrib/ldapc++/src/LDAPAsynConnection.cpp
Silence compiler warnings
[openldap] / contrib / ldapc++ / src / LDAPAsynConnection.cpp
index 7774a674d580b397a25eed6c3a8ce8d1554735c7..cb2542b514ce3c41a0edd4cb778e2619b52196e1 100644 (file)
@@ -53,7 +53,7 @@ void LDAPAsynConnection::init(const string& hostname, int port){
     LDAPURLDesc url;
     memset( &url, 0, sizeof(url));
 
-    url.lud_scheme = "ldap";
+    url.lud_scheme = strdup("ldap");
     url.lud_host = strdup(hostname.c_str());
     url.lud_port = port;
     url.lud_scope = LDAP_SCOPE_DEFAULT;