From: Howard Chu Date: Thu, 25 May 2006 01:05:29 +0000 (+0000) Subject: Fix uninit'd var X-Git-Tag: OPENLDAP_REL_ENG_2_4_3ALPHA~9^2~222 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1ed9fff84cf52932ce54e65ab4986ca49592ee76;p=openldap Fix uninit'd var --- diff --git a/servers/slapd/config.c b/servers/slapd/config.c index d6e09186f2..ef8c522472 100644 --- a/servers/slapd/config.c +++ b/servers/slapd/config.c @@ -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;