]> git.sur5r.net Git - openldap/commitdiff
Fix LBER_MEMORY_DEBUG failed realloc bug
authorKurt Zeilenga <kurt@openldap.org>
Sat, 10 Jun 2000 00:17:55 +0000 (00:17 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Sat, 10 Jun 2000 00:17:55 +0000 (00:17 +0000)
libraries/liblber/memory.c

index 24a4eddfb72c76f6c3a78f3355b5b6d8a12853f8..3b4be421ba7bed8a55a5eb0b544de0e1a2e28a62 100644 (file)
@@ -198,7 +198,7 @@ ber_memcalloc( ber_len_t n, ber_len_t s )
 void *
 ber_memrealloc( void* p, ber_len_t s )
 {
-       void *new;
+       void *new = NULL;
     ber_int_options.lbo_valid = LBER_INITIALIZED;
 
        /* realloc(NULL,s) -> malloc(s) */