[Xfce4-commits] <midori:master> Fallback to / as extension folder for unit tests
Christian Dywan
noreply at xfce.org
Sun Jan 16 14:04:03 CET 2011
Updating branch refs/heads/master
to 355ae063a65849f2b1f0c174d5a00469c77a6d4e (commit)
from 919b0ab0fd8c13485e55eba3fe4d2da0a2d4bae4 (commit)
commit 355ae063a65849f2b1f0c174d5a00469c77a6d4e
Author: Christian Dywan <christian at twotoasts.de>
Date: Sun Jan 16 13:51:24 2011 +0100
Fallback to / as extension folder for unit tests
midori/midori-extension.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/midori/midori-extension.c b/midori/midori-extension.c
index f04ff2a..cd96ec1 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);
}
More information about the Xfce4-commits
mailing list