Browse Source

* Don't crash if an export error occurs.

pull/1/head
Sam Hocevar sam 18 years ago
parent
commit
419adf3cc5
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      src/render.c

+ 2
- 0
src/render.c View File

@@ -119,6 +119,8 @@ static int render_flush(context_t *cx)

/* Output line */
buffer = cucul_export_canvas(cx->torender, cx->export);
if(!buffer)
return -1;
fwrite(cucul_get_buffer_data(buffer),
cucul_get_buffer_size(buffer), 1, stdout);
cucul_free_buffer(buffer);


Loading…
Cancel
Save