Changeset 2264


Ignore:
Timestamp:
Mar 11, 2008, 4:58:00 PM (12 years ago)
Author:
Sam Hocevar
Message:
  • Better error recovery in genethumb.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/genethumb/genethumb.c

    r2263 r2264  
    7373    }
    7474
     75    if(!srcname || !dstname)
     76    {
     77        fprintf(stderr, "%s: too few arguments\n", argv[0]);
     78        printf(MOREINFO, argv[0]);
     79        return EXIT_FAILURE;
     80    }
     81
    7582    src = pipi_load(srcname);
     83    if(!src)
     84    {
     85        fprintf(stderr, "%s: could not load `%s'\n", argv[0], srcname);
     86        return EXIT_FAILURE;
     87    }
     88
    7689    dst = pipi_resize(src, w, h);
    7790    if(bpp == 16)
Note: See TracChangeset for help on using the changeset viewer.