File xfce4-cpugraph-plugin-0.4.0.patch of Package xfce4-panel-plugins

Index: xfce4-cpugraph-plugin-0.4.0/panel-plugin/cpu.c
===================================================================
--- xfce4-cpugraph-plugin-0.4.0/panel-plugin/cpu.c.orig
+++ xfce4-cpugraph-plugin-0.4.0/panel-plugin/cpu.c
@@ -91,7 +91,7 @@ Kill (XfcePanelPlugin * plugin, CPUGraph
 CPUGraph *
 CreateControl (XfcePanelPlugin * plugin)
 {
-    GtkWidget *frame, *ebox;
+    GtkWidget *frame = NULL, *ebox;
     GtkOrientation orientation;
     GtkProgressBarOrientation barOrientation;
     CPUGraph *base = g_new0 (CPUGraph, 1);
@@ -579,7 +579,7 @@ LaunchCommand(GtkWidget *w,GdkEventButto
     if(event->button == 1){
         GString *cmd;
         if (strlen(base->m_AssociateCommand) == 0) {
-            return;
+            return FALSE;
         }
         cmd = g_string_new (base->m_AssociateCommand);
         xfce_exec (cmd->str, FALSE, FALSE, NULL);
openSUSE Build Service is sponsored by