]> git.sur5r.net Git - openldap/commitdiff
Fix shadowed text/textbuf
authorHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 19:19:54 +0000 (19:19 +0000)
committerHoward Chu <hyc@openldap.org>
Mon, 24 Mar 2003 19:19:54 +0000 (19:19 +0000)
servers/slapd/add.c

index f5c1df097563e681680a246fbfa31fe9449d8d95..365b315ebe654249bad2ac23a81f4361dc5efeff 100644 (file)
@@ -478,9 +478,6 @@ slap_mods2entry(
 
                        } else {
                                int             rc;
-                               const char      *text = NULL;
-                               char            textbuf[ SLAP_TEXT_BUFLEN ]  = { '\0' };
-                               
 #ifdef SLAP_NVALUES
                                int match;
 
@@ -504,7 +501,7 @@ slap_mods2entry(
 #else
                                rc = modify_check_duplicates( mods->sml_desc, mr,
                                                NULL, mods->sml_bvalues, 0,
-                                               &text, textbuf, sizeof( textbuf ) );
+                                               text, textbuf, textlen );
 #endif
                                if ( rc != LDAP_SUCCESS ) {
                                        return rc;