From: Ralf Haferkamp Date: Tue, 31 Jul 2007 15:49:16 +0000 (+0000) Subject: initialize msg[] Array, fixed typo X-Git-Tag: OPENLDAP_REL_ENG_2_4_MP~284 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=bc1aa3afa7e65697575fe3f26fd9aa94bac9a93d;p=openldap initialize msg[] Array, fixed typo --- diff --git a/servers/slapd/bconfig.c b/servers/slapd/bconfig.c index fbee634de1..d95a38152e 100644 --- a/servers/slapd/bconfig.c +++ b/servers/slapd/bconfig.c @@ -3106,6 +3106,7 @@ config_setup_ldif( BackendDB *be, const char *dir, int readit ) { argv[1] = (char *)dir; argv[2] = NULL; c.argv = argv; + c.msg[0] = '\0'; c.table = Cft_Database; ct = config_find_keyword( c.be->be_cf_ocs->co_table, &c ); @@ -3115,7 +3116,7 @@ config_setup_ldif( BackendDB *be, const char *dir, int readit ) { if ( config_add_vals( ct, &c )) return 1; - if ( backend_startup_one( &cfb->cb_db, NULL )) + if ( backend_startup_one( &cfb->cb_db, &c )) return 1; if ( readit ) { @@ -4163,7 +4164,7 @@ ok: } } if ( rc ) { - if (ca->msg[0] = 0) + if (ca->msg[0] == '\0') snprintf( ca->msg, sizeof( ca->msg ), "<%s> failed startup", ca->argv[0] ); Debug(LDAP_DEBUG_ANY, "%s: %s (%s)!\n",