Source

libyaml / src / writer.c

Diff from to

src/writer.c

     assert(emitter->write_handler); /* Write handler must be set. */
     assert(emitter->encoding);  /* Output encoding must be set. */
 
+    emitter->buffer.last = emitter->buffer.pointer;
+    emitter->buffer.pointer = emitter->buffer.start;
+
     /* Check if the buffer is empty. */
 
     if (emitter->buffer.start == emitter->buffer.last) {