summaryrefslogtreecommitdiff
path: root/tools/gen-script-for-lang.c
diff options
context:
space:
mode:
authorSoeren Sandmann <sandmann@daimi.au.dk>2003-08-03 22:55:46 +0000
committerSøren Sandmann Pedersen <ssp@src.gnome.org>2003-08-03 22:55:46 +0000
commite5661fe5f8cc2c7ecb992e16f6d69445e3365d4f (patch)
tree597439258363fda23ac903ffab5f67de649038dd /tools/gen-script-for-lang.c
parent6b4e9e5eee2fd030a5e822ff841b8e06ac409001 (diff)
downloadpango-e5661fe5f8cc2c7ecb992e16f6d69445e3365d4f.tar.gz
Fix C99 variable declaration.
Mon Aug 4 01:12:35 2003 Soeren Sandmann <sandmann@daimi.au.dk> * tools/gen-script-for-lang.c (get_script_name): Fix C99 variable declaration.
Diffstat (limited to 'tools/gen-script-for-lang.c')
-rw-r--r--tools/gen-script-for-lang.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/gen-script-for-lang.c b/tools/gen-script-for-lang.c
index ee1580e2..1f774ea7 100644
--- a/tools/gen-script-for-lang.c
+++ b/tools/gen-script-for-lang.c
@@ -14,10 +14,11 @@ PangoScript script_for_file (const char *base_dir,
const char *get_script_name (PangoScript script)
{
static GEnumClass *class = NULL;
+ GEnumValue *value;
if (!class)
class = g_type_class_ref (PANGO_TYPE_SCRIPT);
- GEnumValue *value = g_enum_get_value (class, script);
+ value = g_enum_get_value (class, script);
g_assert (value);
return value->value_name;