[gimp] plug-ins: do not segfault in file-gegl if > 1 image format omits a handler
- From: Michael Henning <mhenning src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] plug-ins: do not segfault in file-gegl if > 1 image format omits a handler
- Date: Wed, 24 Jul 2013 18:11:23 +0000 (UTC)
commit 885a81fbfa30c70b9e7d4b2917734e92b61989ac
Author: Michael Henning <drawoc darkrefraction com>
Date: Wed Jul 24 13:59:24 2013 -0400
plug-ins: do not segfault in file-gegl if > 1 image format omits a handler
plug-ins/common/file-gegl.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/plug-ins/common/file-gegl.c b/plug-ins/common/file-gegl.c
index c4af101..79e6a0a 100644
--- a/plug-ins/common/file-gegl.c
+++ b/plug-ins/common/file-gegl.c
@@ -196,7 +196,7 @@ run (const gchar *name,
{
const FileFormat *format = &file_formats[i];
- if (! strcmp (name, format->load_proc))
+ if (format->load_proc && !strcmp (name, format->load_proc))
{
image_ID = load_image (param[1].data.d_string, &error);
@@ -213,7 +213,7 @@ run (const gchar *name,
break;
}
- else if (! strcmp (name, format->save_proc))
+ else if (format->save_proc && !strcmp (name, format->save_proc))
{
GimpExportReturn export = GIMP_EXPORT_CANCEL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]