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;
|
gchar* config_file;
|
||||||
|
|
||||||
/* Skip state related properties to avoid disk IO */
|
/* Skip state related properties to avoid disk IO */
|
||||||
if (g_str_has_prefix (pspec->name, "last-window-")
|
if ((pspec && g_str_has_prefix (pspec->name, "last-window-"))
|
||||||
|| g_str_has_prefix (pspec->name, "last-panel-"))
|
|| (pspec && g_str_has_prefix (pspec->name, "last-panel-")))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
config_file = build_config_filename ("config");
|
config_file = build_config_filename ("config");
|
||||||
|
|
Loading…
Reference in a new issue