From 355ae063a65849f2b1f0c174d5a00469c77a6d4e Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sun, 16 Jan 2011 13:51:24 +0100 Subject: [PATCH] Fallback to / as extension folder for unit tests --- midori/midori-extension.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/midori/midori-extension.c b/midori/midori-extension.c index f04ff2af..cd96ec1c 100644 --- a/midori/midori-extension.c +++ b/midori/midori-extension.c @@ -566,7 +566,8 @@ midori_extension_get_config_dir (MidoriExtension* extension) if (!extension->priv->config_dir) { gchar* filename = g_object_get_data (G_OBJECT (extension), "filename"); - g_return_val_if_fail (filename != NULL, NULL); + if (!filename) + return "/"; extension->priv->config_dir = g_build_filename ( sokoke_set_config_dir (NULL), "extensions", filename, NULL); } -- 2.39.5