From: Kurt Zeilenga Date: Tue, 8 Jun 1999 01:37:47 +0000 (+0000) Subject: don't test BER_MEM_VALID forever. X-Git-Tag: OPENLDAP_REL_ENG_2_BP~370 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=82def24b31379d4446706622d98d2ad6c05e73d1;p=openldap don't test BER_MEM_VALID forever. --- diff --git a/libraries/liblber/memory.c b/libraries/liblber/memory.c index 30d1e3584c..ac883d3523 100644 --- a/libraries/liblber/memory.c +++ b/libraries/liblber/memory.c @@ -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