From: Christian Dywan Date: Thu, 17 Feb 2011 20:48:48 +0000 (+0100) Subject: Check that pspec is not NULL when skipping state changes X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=663a82d87358262d429644e9ad0ec88e620e339b;p=midori Check that pspec is not NULL when skipping state changes --- 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");