From: Christian Dywan Date: Sun, 16 Jan 2011 12:51:24 +0000 (+0100) Subject: Fallback to / as extension folder for unit tests X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=355ae063a65849f2b1f0c174d5a00469c77a6d4e;p=midori Fallback to / as extension folder for unit tests --- 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); }