Return a copy of a string in ghashtable configuration module.
[cascardo/atompub.git] / config / ghashtable / ghashtable.c
index ab32036..f5a946b 100644 (file)
@@ -75,7 +75,7 @@ ghashtable_atom_config_get_str (AtomCtx *ctx, gchar *group, gchar * key)
       atom_error_message_set (aerr, "Could not find configuration value");
       atom_error_set (ctx, aerr);
     }
-  return value;
+  return g_strdup (value);
 }
 
 AtomConfig *