Changeset 1754


Ignore:
Timestamp:
Feb 22, 2007, 4:34:48 PM (13 years ago)
Author:
Jean-Yves Lamoureux
Message:
  • Added error checks to cacaplay
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcaca/trunk/src/cacaplay.c

    r1462 r1754  
    5353    cv = cucul_create_canvas(0, 0);
    5454    app = cucul_create_canvas(0, 0);
     55    if(cv == NULL || app == NULL)
     56    {
     57        printf("Can't created canvas\n");
     58        return -1;
     59    }
     60    dp = caca_create_display(cv);
     61    if(dp == NULL)
     62    {
     63        printf("Can't create display\n");
     64        return -1;
     65    }
    5566
    56     dp = caca_create_display(cv);
    5767
    5868    for(;;)
Note: See TracChangeset for help on using the changeset viewer.