Check that pspec is not NULL when skipping state changes
This commit is contained in:
parent
00b116a940
commit
663a82d873
1 changed files with 2 additions and 2 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue