]> spindle.queued.net Git - midori/commitdiff
Fallback to / as extension folder for unit tests
authorChristian Dywan <christian@twotoasts.de>
Sun, 16 Jan 2011 12:51:24 +0000 (13:51 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sun, 16 Jan 2011 13:05:23 +0000 (14:05 +0100)
midori/midori-extension.c

index f04ff2af12f7357dfcef1115a057bdb0a0d18fa7..cd96ec1c2f3353f899cb5951e6ae9592896f2657 100644 (file)
@@ -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);
     }