]> git.sur5r.net Git - openldap/commitdiff
ber_bvstr() shouldn't play games with input string.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 15 Aug 2000 17:01:40 +0000 (17:01 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 15 Aug 2000 17:01:40 +0000 (17:01 +0000)
libraries/liblber/memory.c

index 861dd3a23a127990c2806fb6fdf63ebf1e8e49e3..b908c40b7d10e36794797b0e8ce0da7faa8ae2a6 100644 (file)
@@ -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 );