mirror of https://github.com/GNOME/gimp.git
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:
parent
fe0718ef58
commit
dd44b9b9ef
|
@ -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):
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue