From: Lutz M. <lu...@us...> - 2004-08-26 20:08:26
|
Update of /cvsroot/libexif/libexif/libexif/olympus In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18453/libexif/olympus Modified Files: exif-mnote-data-olympus.c Log Message: 2004-08-26 Lutz Mueller <lu...@us...> Suggestions from Angela Wrobel <Ang...@gm...>: * libexif/exif-entry.c * libexif/exif-loader.c * libexif/exif-utils.c * olympus/exif-mnote-data-olympus.c * pentax/exif-mnote-data-pentax.c: Check if malloc returned NULL. Index: exif-mnote-data-olympus.c =================================================================== RCS file: /cvsroot/libexif/libexif/libexif/olympus/exif-mnote-data-olympus.c,v retrieving revision 1.16 retrieving revision 1.17 diff -u -d -r1.16 -r1.17 --- exif-mnote-data-olympus.c 13 Jul 2004 15:16:38 -0000 1.16 +++ exif-mnote-data-olympus.c 26 Aug 2004 20:08:09 -0000 1.17 @@ -265,6 +265,7 @@ exif_mnote_data_olympus_clear (n); n->entries = malloc (sizeof (MnoteOlympusEntry) * c); + if (!n->entries) return; memset (n->entries, 0, sizeof (MnoteOlympusEntry) * c); /* Parse the entries */ |