[Xfce4-commits] <xfce4-mailwatch-plugin:master> Fix 'uninitialized variable' warnings

Ján Sučan noreply at xfce.org
Mon Sep 16 13:10:01 CEST 2013


Updating branch refs/heads/master
         to e5a1b9c44e5c8faeb3d19c18b05691e7f187ed56 (commit)
       from c1151ebf140f53eb64eea26316dfb4a2f2716a8f (commit)

commit e5a1b9c44e5c8faeb3d19c18b05691e7f187ed56
Author: Ján Sučan <sucan at runbox.com>
Date:   Mon Sep 16 13:07:16 2013 +0200

    Fix 'uninitialized variable' warnings

 panel-plugin/mailwatch-plugin.c |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/panel-plugin/mailwatch-plugin.c b/panel-plugin/mailwatch-plugin.c
index 35beaa8..68f1fde 100644
--- a/panel-plugin/mailwatch-plugin.c
+++ b/panel-plugin/mailwatch-plugin.c
@@ -765,9 +765,10 @@ mailwatch_iconbtn_clicked_cb(GtkWidget *w, XfceMailwatchPlugin *mwp)
     if(gtk_dialog_run(GTK_DIALOG(chooser)) == GTK_RESPONSE_ACCEPT) {
         gchar *filename = exo_icon_chooser_dialog_get_icon(EXO_ICON_CHOOSER_DIALOG(chooser));
         if(filename) {
-            GtkWidget *label, *image, *vbox;
-            GdkPixbuf **icon_pix;
-            gchar **icon_path;
+            GtkWidget *image, *vbox;
+            GtkWidget *label = NULL;
+            GdkPixbuf **icon_pix = NULL;
+            gchar **icon_path = NULL;
 
             switch(icon_type) {
             case ICON_TYPE_NORMAL:


More information about the Xfce4-commits mailing list