[Xfce4-commits] <midori:master> Check that pspec is not NULL when skipping state changes
Christian Dywan
noreply at xfce.org
Thu Feb 17 21:50:01 CET 2011
Updating branch refs/heads/master
to 663a82d87358262d429644e9ad0ec88e620e339b (commit)
from 00b116a9405a5474946743a828a0371b4fdb21b8 (commit)
commit 663a82d87358262d429644e9ad0ec88e620e339b
Author: Christian Dywan <christian at twotoasts.de>
Date: Thu Feb 17 21:48:48 2011 +0100
Check that pspec is not NULL when skipping state changes
midori/main.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index 805a693..d7ceb6b 100644
--- a/midori/main.c
+++ b/midori/main.c
@@ -600,8 +600,8 @@ settings_notify_cb (MidoriWebSettings* settings,
gchar* config_file;
/* Skip state related properties to avoid disk IO */
- if (g_str_has_prefix (pspec->name, "last-window-")
- || g_str_has_prefix (pspec->name, "last-panel-"))
+ if ((pspec && g_str_has_prefix (pspec->name, "last-window-"))
+ || (pspec && g_str_has_prefix (pspec->name, "last-panel-")))
return;
config_file = build_config_filename ("config");
More information about the Xfce4-commits
mailing list