[gimp/gimp-2-6] file-png: Add comments about the struct checks (cherry picked from commit 5769acd3db0c726914c2a399e5
- From: Nils Philippsen <nphilipp src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-6] file-png: Add comments about the struct checks (cherry picked from commit 5769acd3db0c726914c2a399e5
- Date: Thu, 17 Nov 2011 16:01:58 +0000 (UTC)
commit e5c847d8e4457376f996d9af095dc10eaf06d785
Author: Mukund Sivaraman <muks banu com>
Date: Tue Sep 27 19:22:50 2011 +0530
file-png: Add comments about the struct checks
(cherry picked from commit 5769acd3db0c726914c2a399e59b71eb4d8a9d7d)
plug-ins/common/file-png.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-png.c b/plug-ins/common/file-png.c
index 3c3d675..bf78e5d 100644
--- a/plug-ins/common/file-png.c
+++ b/plug-ins/common/file-png.c
@@ -722,6 +722,9 @@ load_image (const gchar *filename,
pp = png_create_read_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
if (!pp)
{
+ /* this could happen if the compile time and run-time libpng
+ versions do not match. */
+
g_set_error (error, 0, 0,
_("Error creating PNG read struct while saving '%s'."),
gimp_filename_to_utf8 (filename));
@@ -1257,6 +1260,9 @@ save_image (const gchar *filename,
pp = png_create_write_struct (PNG_LIBPNG_VER_STRING, NULL, NULL, NULL);
if (!pp)
{
+ /* this could happen if the compile time and run-time libpng
+ versions do not match. */
+
g_set_error (error, 0, 0,
_("Error creating PNG write struct while saving '%s'."),
gimp_filename_to_utf8 (filename));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]