]> git.sur5r.net Git - openldap/commitdiff
Fix uninitialized variable
authorHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 06:54:33 +0000 (06:54 +0000)
committerHallvard Furuseth <hallvard@openldap.org>
Wed, 1 Sep 1999 06:54:33 +0000 (06:54 +0000)
servers/slapd/back-bdb2/modrdn.c
servers/slapd/back-ldbm/modrdn.c

index e6e003b793282bc29ffe4174148b43e2a4ac110e..756a0c1924dc9708b375f7d8d126faa52737cb2f 100644 (file)
@@ -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 */
index e04d7bca0dfb7197eb82c92f078939de6bc74d70..a2262c63b9fee0b09088669fe62c2aa19186d704 100644 (file)
@@ -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 */