[gimp] pdb: fix uninitialized variable warning in the convmatrix compat wrapper
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] pdb: fix uninitialized variable warning in the convmatrix compat wrapper
- Date: Fri, 29 Aug 2014 19:41:08 +0000 (UTC)
commit 1326cc5562e12a01733ebfcf2c5fe99029842595
Author: Michael Natterer <mitch gimp org>
Date: Fri Aug 29 21:37:17 2014 +0200
pdb: fix uninitialized variable warning in the convmatrix compat wrapper
app/pdb/plug-in-compat-cmds.c | 10 +++++-----
tools/pdbgen/pdb/plug_in_compat.pdb | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)
---
diff --git a/app/pdb/plug-in-compat-cmds.c b/app/pdb/plug-in-compat-cmds.c
index bb48af4..bee9ec1 100644
--- a/app/pdb/plug-in-compat-cmds.c
+++ b/app/pdb/plug-in-compat-cmds.c
@@ -746,11 +746,11 @@ plug_in_convmatrix_invoker (GimpProcedure *procedure,
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
{
GeglNode *node;
- GeglAbyssPolicy border;
- gboolean r = channels[1];
- gboolean g = channels[2];
- gboolean b = channels[3];
- gboolean a = channels[4];
+ GeglAbyssPolicy border = GEGL_ABYSS_CLAMP;
+ gboolean r = channels[1];
+ gboolean g = channels[2];
+ gboolean b = channels[3];
+ gboolean a = channels[4];
if (gimp_drawable_is_gray (drawable))
{
diff --git a/tools/pdbgen/pdb/plug_in_compat.pdb b/tools/pdbgen/pdb/plug_in_compat.pdb
index fb638dc..7fca071 100644
--- a/tools/pdbgen/pdb/plug_in_compat.pdb
+++ b/tools/pdbgen/pdb/plug_in_compat.pdb
@@ -637,11 +637,11 @@ HELP
gimp_pdb_item_is_not_group (GIMP_ITEM (drawable), error))
{
GeglNode *node;
- GeglAbyssPolicy border;
- gboolean r = channels[1];
- gboolean g = channels[2];
- gboolean b = channels[3];
- gboolean a = channels[4];
+ GeglAbyssPolicy border = GEGL_ABYSS_CLAMP;
+ gboolean r = channels[1];
+ gboolean g = channels[2];
+ gboolean b = channels[3];
+ gboolean a = channels[4];
if (gimp_drawable_is_gray (drawable))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]