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

This commit is contained in:
Michael Henning 2013-07-24 13:59:24 -04:00
parent fb078df6fb
commit 885a81fbfa
1 changed files with 2 additions and 2 deletions

View File

@ -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;