If no data was appended, cbuf_get() would return a pointer to uninitialized memory. Now it returns a pointer to a string of zero length.