summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-metadata.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-metadata.c')
-rw-r--r--libcaja-private/caja-metadata.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libcaja-private/caja-metadata.c b/libcaja-private/caja-metadata.c
index 2b12962f..b854215d 100644
--- a/libcaja-private/caja-metadata.c
+++ b/libcaja-private/caja-metadata.c
@@ -66,10 +66,11 @@ guint
caja_metadata_get_id (const char *metadata)
{
static GHashTable *hash;
- int i;
if (hash == NULL)
{
+ int i;
+
hash = g_hash_table_new (g_str_hash, g_str_equal);
for (i = 0; used_metadata_names[i] != NULL; i++)
g_hash_table_insert (hash,