From: Hallvard Furuseth Date: Wed, 1 Sep 1999 06:54:33 +0000 (+0000) Subject: Fix uninitialized variable X-Git-Tag: TWEB_OL_BASE~52 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=8bbaca258ff6e0ffb1e773fa96c6465961eaf117;p=openldap Fix uninitialized variable --- diff --git a/servers/slapd/back-bdb2/modrdn.c b/servers/slapd/back-bdb2/modrdn.c index e6e003b793..756a0c1924 100644 --- a/servers/slapd/back-bdb2/modrdn.c +++ b/servers/slapd/back-bdb2/modrdn.c @@ -45,7 +45,7 @@ bdb2i_back_modrdn_internal( /* Added to support LDAP v2 correctly (deleteoldrdn thing) */ char *new_rdn_val = NULL; /* Val of new rdn */ char *new_rdn_type = NULL; /* Type of new rdn */ - char *old_rdn; /* Old rdn's attr type & val */ + char *old_rdn = NULL; /* Old rdn's attr type & val */ char *old_rdn_type = NULL; /* Type of old rdn attr. */ char *old_rdn_val = NULL; /* Old rdn attribute value */ struct berval add_bv; /* Stores new rdn att */ diff --git a/servers/slapd/back-ldbm/modrdn.c b/servers/slapd/back-ldbm/modrdn.c index e04d7bca0d..a2262c63b9 100644 --- a/servers/slapd/back-ldbm/modrdn.c +++ b/servers/slapd/back-ldbm/modrdn.c @@ -52,7 +52,7 @@ ldbm_back_modrdn( /* Added to support LDAP v2 correctly (deleteoldrdn thing) */ char *new_rdn_val = NULL; /* Val of new rdn */ char *new_rdn_type = NULL; /* Type of new rdn */ - char *old_rdn; /* Old rdn's attr type & val */ + char *old_rdn = NULL; /* Old rdn's attr type & val */ char *old_rdn_type = NULL; /* Type of old rdn attr. */ char *old_rdn_val = NULL; /* Old rdn attribute value */ /* Added to support newSuperior */