]> git.sur5r.net Git - openldap/commitdiff
don't test BER_MEM_VALID forever.
authorKurt Zeilenga <kurt@openldap.org>
Tue, 8 Jun 1999 01:37:47 +0000 (01:37 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Tue, 8 Jun 1999 01:37:47 +0000 (01:37 +0000)
libraries/liblber/memory.c

index 30d1e3584c94c18ece74029be47991d36433c741..ac883d352320508fac10d59e8f633f3974420431 100644 (file)
@@ -30,7 +30,7 @@ static const struct ber_mem_hdr ber_int_mem_hdr = { BER_MEM_JUNK };
 #define BER_MEM_VALID(p)       do { \
                assert( (p) != BER_MEM_BADADDR );       \
                assert( (p) != (void *) &ber_int_mem_hdr );     \
-       } while(1)
+       } while(0)
 #else
 #define BER_MEM_VALID(p)       /* no-op */
 #endif