]> git.sur5r.net Git - openldap/commitdiff
if urls is NULL, default to ldap:///
authorGary Williams <gwilliams@openldap.org>
Wed, 4 Aug 1999 18:26:19 +0000 (18:26 +0000)
committerGary Williams <gwilliams@openldap.org>
Wed, 4 Aug 1999 18:26:19 +0000 (18:26 +0000)
libraries/liblutil/ntservice.c

index f287a647cb13674cc41cc286797ba45289efcd8e..bf6d114b05d80dbbd3a2fd2ce257d2e5ea8bd0da 100644 (file)
@@ -326,7 +326,7 @@ void LogSlapdStartedEvent( char *svc, int slap_debug, char *configfile, char *ur
        Inserts[i] = (char *)malloc( 20 );
        itoa( slap_debug, Inserts[i++], 10 );
        Inserts[i++] = ldap_pvt_strdup( configfile );
-       Inserts[i++] = ldap_pvt_strdup( urls );
+       Inserts[i++] = ldap_pvt_strdup( urls ? urls : "ldap:///" );
        Inserts[i++] = ldap_pvt_strdup( is_NT_Service ? "svc" : "cmd" );
 
        ReportEvent( hEventLog, EVENTLOG_INFORMATION_TYPE, 0,