[gimp] Make values static to avoid returning bogus ptr



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]