From: Jeff King Date: Wed, 28 Jun 2006 05:59:23 +0000 (-0400) Subject: quote.c: silence compiler warnings from EMIT macro X-Git-Tag: v1.4.1-rc2~16 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8dcaefb52f81115d71e1dfa27d45f4a677bcbc09;p=git.git quote.c: silence compiler warnings from EMIT macro Signed-off-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/quote.c b/quote.c index dcc232661..1910d000a 100644 --- a/quote.c +++ b/quote.c @@ -13,7 +13,7 @@ * a!b ==> a'\!'b ==> 'a'\!'b' */ #undef EMIT -#define EMIT(x) ( (++len < n) && (*bp++ = (x)) ) +#define EMIT(x) do { if (++len < n) *bp++ = (x); } while(0) static inline int need_bs_quote(char c) {