[gimp] Make values static to avoid returning bogus ptr
- From: Mukund Sivaraman <muks src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] Make values static to avoid returning bogus ptr
- Date: Thu, 30 Sep 2010 17:45:15 +0000 (UTC)
commit cad6ba9b944af61438939aed3f54a7eb86d00424
Author: Mukund Sivaraman <muks banu com>
Date: Thu Sep 30 23:14:56 2010 +0530
Make values static to avoid returning bogus ptr
God knows how many other plug-ins have this.
plug-ins/color-rotate/color-rotate.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/plug-ins/color-rotate/color-rotate.c b/plug-ins/color-rotate/color-rotate.c
index b722239..10a572b 100644
--- a/plug-ins/color-rotate/color-rotate.c
+++ b/plug-ins/color-rotate/color-rotate.c
@@ -118,7 +118,7 @@ run (const gchar *name,
gint *nreturn_vals,
GimpParam **return_vals)
{
- GimpParam values[1];
+ static GimpParam values[1];
GimpPDBStatusType status = GIMP_PDB_SUCCESS;
*nreturn_vals = 1;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]