Ignore:
Timestamp:
Feb 22, 2007, 4:31:39 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added error checks on canvas / display creations
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/test/input.c

    r1462 r1753  
    4343
    4444    cv = cucul_create_canvas(0, 0);
     45    if(cv == NULL)
     46    {
     47        printf("Can't created canvas\n");
     48        return -1;
     49    }
    4550    dp = caca_create_display(cv);
     51    if(dp == NULL)
     52    {
     53        printf("Can't create display\n");
     54        return -1;
     55    }
    4656
    4757    cucul_set_color_ansi(cv, CUCUL_WHITE, CUCUL_BLUE);
Note: See TracChangeset for help on using the changeset viewer.