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

Legend:

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

    r1462 r1753  
    3737
    3838    cv = cucul_create_canvas(0, 0);
     39    if(cv == NULL)
     40    {
     41        printf("Can't created canvas\n");
     42        return -1;
     43    }
    3944    dp = caca_create_display(cv);
     45    if(dp == NULL)
     46    {
     47        printf("Can't create display\n");
     48        return -1;
     49    }
    4050
    4151    for(y = 0; y < 256; y++)
Note: See TracChangeset for help on using the changeset viewer.