From: Adam Dickmeiss Date: Tue, 30 Sep 2014 13:51:59 +0000 (+0000) Subject: Fix annoying warning about wrbuf_putc YAZ-789 X-Git-Tag: v5.4.3~6 X-Git-Url: http://jsfdemo.indexdata.com/cgi-bin?a=commitdiff_plain;h=d2f9663df5b6dc2aa97c28659bbe6fbf1db6ce32;p=yaz-moved-to-github.git Fix annoying warning about wrbuf_putc YAZ-789 --- diff --git a/include/yaz/wrbuf.h b/include/yaz/wrbuf.h index 1d4f83b..f5ebf1d 100644 --- a/include/yaz/wrbuf.h +++ b/include/yaz/wrbuf.h @@ -258,7 +258,7 @@ const char *wrbuf_cstr_null(WRBUF b); #define wrbuf_putc(b, c) \ ((void) ((b)->pos >= (b)->size ? wrbuf_grow(b, 1) : 0), \ - (b)->buf[(b)->pos++] = (c), 0) + (b)->buf[(b)->pos++] = (c)) /** \brief writes JSON text to WRBUF with escaping