]> spindle.queued.net Git - midori/commitdiff
Check that pspec is not NULL when skipping state changes
authorChristian Dywan <christian@twotoasts.de>
Thu, 17 Feb 2011 20:48:48 +0000 (21:48 +0100)
committerChristian Dywan <christian@twotoasts.de>
Thu, 17 Feb 2011 20:48:48 +0000 (21:48 +0100)
midori/main.c

index 805a69307186153cd2f3ca4b18930c0e603cefdf..d7ceb6b2fb24ee05913286e9976c57a525d6d973 100644 (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");