Check that pspec is not NULL when skipping state changes

This commit is contained in:
Christian Dywan 2011-02-17 21:48:48 +01:00
parent 00b116a940
commit 663a82d873

View file

@ -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");