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/transform.c

    r1462 r1753  
    4747
    4848    cv = cucul_create_canvas(0, 0);
     49    if(cv == NULL)
     50    {
     51        printf("Can't created canvas\n");
     52        return -1;
     53    }
    4954    dp = caca_create_display(cv);
     55    if(dp == NULL)
     56    {
     57        printf("Can't create display\n");
     58        return -1;
     59    }
    5060
    5161    image = cucul_create_canvas(70, 6);
Note: See TracChangeset for help on using the changeset viewer.