diff options
author | Jeff King <peff@peff.net> | 2006-06-28 01:59:23 -0400 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2006-06-28 01:18:18 -0700 |
commit | 8dcaefb52f81115d71e1dfa27d45f4a677bcbc09 (patch) | |
tree | 7ca6f86c6c90633f78401960b9ee6545afbfd9cf /quote.c | |
parent | 8096fae7269e7b3882394100151bc017446b01a1 (diff) | |
download | git-8dcaefb52f81115d71e1dfa27d45f4a677bcbc09.tar.gz |
quote.c: silence compiler warnings from EMIT macro
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
Diffstat (limited to 'quote.c')
-rw-r--r-- | quote.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |