Changeset 3401 for libpipi


Ignore:
Timestamp:
Feb 21, 2009, 3:26:45 PM (12 years ago)
Author:
Sam Hocevar
Message:

Fix a crash in the JPEG loader when meeting with ENOENT.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpipi/trunk/pipi/codec/jpeg.c

    r3344 r3401  
    6969    FILE *fp;
    7070
     71    if(setjmp(jerr.setjmp_buffer))
     72        return NULL;
     73
    7174    fp = fopen(name, "rb");
    7275    if(!fp)
    73         goto end;
    74 
    75     if(setjmp(jerr.setjmp_buffer))
    76         goto end;
     76        return NULL;
    7777
    7878    cinfo.err = jpeg_std_error(&jerr.pub);
Note: See TracChangeset for help on using the changeset viewer.