Changeset 1318 for toilet


Ignore:
Timestamp:
Nov 10, 2006, 8:38:52 AM (13 years ago)
Author:
Sam Hocevar
Message:
  • Don't crash if an export error occurs.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • toilet/trunk/src/render.c

    r1293 r1318  
    120120    /* Output line */
    121121    buffer = cucul_export_canvas(cx->torender, cx->export);
     122    if(!buffer)
     123        return -1;
    122124    fwrite(cucul_get_buffer_data(buffer),
    123125           cucul_get_buffer_size(buffer), 1, stdout);
Note: See TracChangeset for help on using the changeset viewer.