]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
brackets around maybe-macro-assert()
authorwessels <>
Fri, 24 Jul 1998 06:58:35 +0000 (06:58 +0000)
committerwessels <>
Fri, 24 Jul 1998 06:58:35 +0000 (06:58 +0000)
src/MemBuf.cc

index 939317951e21b7981201e66300b52887db46edf6..01b4822570c676f03574181aca3d2bf6257b3aa0 100644 (file)
@@ -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--;
+    }
 }
 
 /*