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).
This commit is contained in:
Sven Neumann 2005-06-24 15:00:34 +00:00 committed by Sven Neumann
parent fe0718ef58
commit dd44b9b9ef
5 changed files with 30 additions and 4 deletions

View File

@ -1,3 +1,9 @@
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):

View File

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

View File

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

View File

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

View File

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