]> git.sur5r.net Git - openldap/commitdiff
Fix uninit'd var
authorHoward Chu <hyc@openldap.org>
Thu, 25 May 2006 01:05:29 +0000 (01:05 +0000)
committerHoward Chu <hyc@openldap.org>
Thu, 25 May 2006 01:05:29 +0000 (01:05 +0000)
servers/slapd/config.c

index d6e09186f2fb36dc5ed06256057682ff70338d47..ef8c52247248b860631a3c5d9a0f3347bca99202 100644 (file)
@@ -431,6 +431,7 @@ config_get_vals(ConfigTable *cf, ConfigArgs *c)
                }
        }
        if ( cf->arg_type & ARGS_TYPES) {
+               bv.bv_len = 0;
                bv.bv_val = c->log;
                switch(cf->arg_type & ARGS_TYPES) {
                case ARG_INT: bv.bv_len = snprintf(bv.bv_val, sizeof( c->log ), "%d", c->value_int); break;