Skip to content

Commit

Permalink
quote.c: silence compiler warnings from EMIT macro
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jun 28, 2006
1 parent 8096fae commit 8dcaefb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion quote.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 8dcaefb

Please sign in to comment.