From: Lutz M. <lu...@us...> - 2008-02-20 19:02:30
|
Update of /cvsroot/libexif/libexif/libexif In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv20111/libexif Modified Files: exif-data.c Log Message: 2008-02-20 Lutz Mueller <lu...@us...> Follow-up on #1774591: * libexif/exif-data.c: (exif_data_save_data_content) Remove check for now impossible NULL value. Index: exif-data.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/exif-data.c,v retrieving revision 1.110 retrieving revision 1.111 diff -u -p -d -r1.110 -r1.111 --- exif-data.c 17 Feb 2008 18:31:55 -0000 1.110 +++ exif-data.c 20 Feb 2008 19:02:26 -0000 1.111 @@ -544,11 +544,9 @@ exif_data_save_data_content (ExifData *d exif_log (data->priv->log, EXIF_LOG_CODE_DEBUG, "ExifData", "Saving %i entries (IFD '%s', offset: %i)...", ifd->count, exif_ifd_get_name (i), offset); - for (j = 0; j < ifd->count; j++) { - exif_data_save_data_entry (data, ifd->entries[j], d, ds, offset + 12 * j); - if (!*d) - return; /* out of memory */ - } + for (j = 0; j < ifd->count; j++) + exif_data_save_data_entry (data, ifd->entries[j], d, ds, + offset + 12 * j); offset += 12 * ifd->count; |