summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuele Bassi <ebassi@linux.intel.com>2009-11-12 10:09:17 +0000
committerEmmanuele Bassi <ebassi@linux.intel.com>2009-11-12 10:09:17 +0000
commitecc185d1c542f6ff41f84be026dc380f611a5d6e (patch)
tree9ba30b75df8706518195d6a4536e58f57143d609
parent84f5af58c23b174cc9708e81ce8ccbfffa6e68eb (diff)
downloadjson-glib-ecc185d1c542f6ff41f84be026dc380f611a5d6e.tar.gz
enum-types: Put back a missing static
The GEnumValue array defining the enumeration type values must be static, otherwise everything will crash when trying to retrieve the enumeration data from the GEnumClass.
-rw-r--r--json-glib/json-enum-types.c.in2
1 files changed, 1 insertions, 1 deletions
diff --git a/json-glib/json-enum-types.c.in b/json-glib/json-enum-types.c.in
index eba4222..8b82049 100644
--- a/json-glib/json-enum-types.c.in
+++ b/json-glib/json-enum-types.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 ***/