[gimp] Issue #4458 - gimp-console-2.99 -b '(gimp-quit 1)' segfaults
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Issue #4458 - gimp-console-2.99 -b '(gimp-quit 1)' segfaults
- Date: Sun, 5 Jan 2020 16:33:33 +0000 (UTC)
commit bffb7535587827245bcdb5742164a3d5e2fc56cc
Author: Michael Natterer <mitch gimp org>
Date: Sun Jan 5 17:31:45 2020 +0100
Issue #4458 - gimp-console-2.99 -b '(gimp-quit 1)' segfaults
Don't check for GIMP_IS_PARAM_SPEC_STRING(), it's internal
to the core and G_IS_PARAM_SPEC_STRING() is good enough in
most cases. Spotted by Massimo.
app/actions/procedure-commands.c | 2 +-
app/core/gimp-batch.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/app/actions/procedure-commands.c b/app/actions/procedure-commands.c
index db3dff9c0c..c96c5b918a 100644
--- a/app/actions/procedure-commands.c
+++ b/app/actions/procedure-commands.c
@@ -85,7 +85,7 @@ procedure_commands_get_data_args (GimpProcedure *procedure,
}
if (gimp_value_array_length (args) > n_args &&
- GIMP_IS_PARAM_SPEC_STRING (procedure->args[n_args]))
+ G_IS_PARAM_SPEC_STRING (procedure->args[n_args]))
{
if (object)
{
diff --git a/app/core/gimp-batch.c b/app/core/gimp-batch.c
index 92e0f9a750..6dfa5ea551 100644
--- a/app/core/gimp-batch.c
+++ b/app/core/gimp-batch.c
@@ -162,7 +162,7 @@ gimp_batch_run_cmd (Gimp *gimp,
}
if (procedure->num_args > i &&
- GIMP_IS_PARAM_SPEC_STRING (procedure->args[i]))
+ G_IS_PARAM_SPEC_STRING (procedure->args[i]))
{
g_value_set_static_string (gimp_value_array_index (args, i++), cmd);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]