From: wessels <> Date: Fri, 24 Jul 1998 06:58:35 +0000 (+0000) Subject: brackets around maybe-macro-assert() X-Git-Tag: SQUID_3_0_PRE1~2991 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=43d2af69cff7925edb7aa3121471aa1633b2394a;p=thirdparty%2Fsquid.git brackets around maybe-macro-assert() --- diff --git a/src/MemBuf.cc b/src/MemBuf.cc index 939317951e..01b4822570 100644 --- a/src/MemBuf.cc +++ b/src/MemBuf.cc @@ -1,5 +1,5 @@ /* - * $Id: MemBuf.cc,v 1.18 1998/07/22 20:36:51 wessels Exp $ + * $Id: MemBuf.cc,v 1.19 1998/07/24 00:58:35 wessels Exp $ * * DEBUG: section 59 auto-growing Memory Buffer with printf * AUTHOR: Alex Rousskov @@ -248,10 +248,11 @@ memBufVPrintf(MemBuf * mb, const char *fmt, va_list vargs) /* on Linux and FreeBSD, '\0' is not counted in return value */ /* on XXX it might be counted */ /* check that '\0' is appended and not counted */ - if (!mb->size || mb->buf[mb->size - 1]) + if (!mb->size || mb->buf[mb->size - 1]) { assert(!mb->buf[mb->size]); - else + } else { mb->size--; + } } /*