[unique] enum-types: Put back a missing static



commit 5822b9ec98f170c3b069135af88ec6bb4ecda689
Author: Emmanuele Bassi <ebassi gnome org>
Date:   Thu Nov 12 10:02:41 2009 +0000

    enum-types: Put back a missing static
    
    The enumeration types data should be static, otherwise it'll lead
    to crashes when looking up the GEnumValue.

 unique/uniqueenumtypes.c.in |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/unique/uniqueenumtypes.c.in b/unique/uniqueenumtypes.c.in
index c17312a..44f2585 100644
--- a/unique/uniqueenumtypes.c.in
+++ b/unique/uniqueenumtypes.c.in
@@ -16,7 +16,7 @@ GType
 
   if (g_once_init_enter (&g_enum_type_id__volatile))
     {
-      const G Type@Value values[] = {
+      static const G Type@Value values[] = {
 /*** END value-header ***/
 
 /*** BEGIN value-production ***/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]