* Don't crash if an export error occurs.
This commit is contained in:
parent
b93cdd971c
commit
419adf3cc5
1 changed files with 2 additions and 0 deletions
|
@ -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…
Add table
Reference in a new issue