From 663a82d87358262d429644e9ad0ec88e620e339b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Thu, 17 Feb 2011 21:48:48 +0100 Subject: [PATCH] Check that pspec is not NULL when skipping state changes --- midori/main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/midori/main.c b/midori/main.c index 805a6930..d7ceb6b2 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"); -- 2.39.5