[json-glib] enum-types: Put back a missing static
- From: Emmanuele Bassi <ebassi src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [json-glib] enum-types: Put back a missing static
- Date: Thu, 12 Nov 2009 10:10:47 +0000 (UTC)
commit ecc185d1c542f6ff41f84be026dc380f611a5d6e
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Thu Nov 12 10:09:17 2009 +0000
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.
json-glib/json-enum-types.c.in | 2 +-
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 ***/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]