[Xfce4-commits] <xfce4-fsguard-plugin:master> avoid an assertion when adding the plugin

Landry Breuil noreply at xfce.org
Fri May 4 17:16:02 CEST 2012


Updating branch refs/heads/master
         to 4e558c53418a151e03392b0ad98bf6248722c139 (commit)
       from 661471acf727c1ee7ddd923ecc6f5dc20e3393b4 (commit)

commit 4e558c53418a151e03392b0ad98bf6248722c139
Author: Landry Breuil <landry at xfce.org>
Date:   Fri May 4 17:06:38 2012 +0200

    avoid an assertion when adding the plugin

 panel-plugin/fsguard.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/panel-plugin/fsguard.c b/panel-plugin/fsguard.c
index 0887101..01ecfb0 100644
--- a/panel-plugin/fsguard.c
+++ b/panel-plugin/fsguard.c
@@ -335,7 +335,8 @@ fsguard_read_config (FsGuard *fsguard)
     fsguard->limit_urgent       = 2;
 
     file = xfce_panel_plugin_lookup_rc_file(fsguard->plugin);
-    g_return_if_fail (file);
+    if (!file)
+        return;
     DBG ("Lookup rc file `%s'", file);
     rc = xfce_rc_simple_open (file, TRUE);
     g_free (file);


More information about the Xfce4-commits mailing list