From: Kurt Zeilenga Date: Tue, 15 Aug 2000 17:01:40 +0000 (+0000) Subject: ber_bvstr() shouldn't play games with input string. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~2251 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=ce856bd5c23500936e97f8641d98cc29172842d6;p=openldap ber_bvstr() shouldn't play games with input string. --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 861dd3a23a..b908c40b7d 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -498,12 +498,6 @@ ber_bvstr( return NULL; } - if ( *s == '\0' ) { - new->bv_val = NULL; - new->bv_len = 0; - return new; - } - new->bv_val = (char *) s; new->bv_len = strlen( s );