From 4853334ad4141209b0cc158c65bdaac1645eac3b Mon Sep 17 00:00:00 2001 From: Howard Chu Date: Mon, 24 Mar 2003 19:19:54 +0000 Subject: [PATCH] Fix shadowed text/textbuf --- servers/slapd/add.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/servers/slapd/add.c b/servers/slapd/add.c index f5c1df0975..365b315ebe 100644 --- a/servers/slapd/add.c +++ b/servers/slapd/add.c @@ -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; -- 2.39.5