summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-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;