Commit dd44b9b9 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

if we end up without any return values, assume an execution error instead

2005-06-24  Sven Neumann  <sven@gimp.org>

	* app/pdb/procedural_db.c (procedural_db_execute): if we end up
	without any return values, assume an execution error instead of
	crashing (bug #308904).
parent fe0718ef
2005-06-24 Sven Neumann <sven@gimp.org>
* app/pdb/procedural_db.c (procedural_db_execute): if we end up
without any return values, assume an execution error instead of
crashing (bug #308904).
2005-06-24 Sven Neumann <sven@gimp.org>
* modules/cdisplay_lcms.c (cdisplay_lcms_get_display_profile):
......
......@@ -316,7 +316,12 @@ procedural_db_execute (Gimp *gimp,
return_args = plug_in_run (gimp, context, progress, procedure,
args, procedure->num_args,
TRUE, FALSE, -1);
break;
/* If there are no return arguments, assume
* an execution error and fall through.
*/
if (return_args)
break;
default:
return_args = g_new (Argument, 1);
......
......@@ -316,7 +316,12 @@ procedural_db_execute (Gimp *gimp,
return_args = plug_in_run (gimp, context, progress, procedure,
args, procedure->num_args,
TRUE, FALSE, -1);
break;
/* If there are no return arguments, assume
* an execution error and fall through.
*/
if (return_args)
break;
default:
return_args = g_new (Argument, 1);
......
......@@ -316,7 +316,12 @@ procedural_db_execute (Gimp *gimp,
return_args = plug_in_run (gimp, context, progress, procedure,
args, procedure->num_args,
TRUE, FALSE, -1);
break;
/* If there are no return arguments, assume
* an execution error and fall through.
*/
if (return_args)
break;
default:
return_args = g_new (Argument, 1);
......
......@@ -316,7 +316,12 @@ procedural_db_execute (Gimp *gimp,
return_args = plug_in_run (gimp, context, progress, procedure,
args, procedure->num_args,
TRUE, FALSE, -1);
break;
/* If there are no return arguments, assume
* an execution error and fall through.
*/
if (return_args)
break;
default:
return_args = g_new (Argument, 1);
......
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