Commit 885a81fb authored by Michael Henning's avatar Michael Henning

plug-ins: do not segfault in file-gegl if > 1 image format omits a handler

parent fb078df6
......@@ -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;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment