It is possible to have a printbuf with "gaps", i.e. areas within the print buffer which have not been initialized by using printbuf_memset. Always clear memory in such cases. Example: ``` struct printbuf *pb = printbuf_new(); printbuf_memset(pb, 10, 'a', 2); ``` In this case pb->buf[0] is '\0' but pb->buf[1] up to pb->buf[9] are not set. The length would be 12 due to successful printbuf_memset.tags/json-c-0.16-20220414