[Xfce4-commits] [xfce/xfdesktop] 16/19: Fix possible uninitialized variables

noreply at xfce.org noreply at xfce.org
Sun Nov 9 15:36:58 CET 2014


This is an automated email from the git hooks/post-receive script.

eric pushed a commit to branch xfce-4.10
in repository xfce/xfdesktop.

commit 6ed4ff824ed03f6c144ef2d8e3b0577c4e6cdaff
Author: Eric Koegel <eric.koegel at gmail.com>
Date:   Mon Nov 3 15:01:20 2014 +0300

    Fix possible uninitialized variables
---
 src/xfdesktop-volume-icon.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/xfdesktop-volume-icon.c b/src/xfdesktop-volume-icon.c
index 4500aa8..27fb350 100644
--- a/src/xfdesktop-volume-icon.c
+++ b/src/xfdesktop-volume-icon.c
@@ -363,7 +363,7 @@ xfdesktop_volume_icon_do_drop_dest(XfdesktopIcon *icon,
     XfdesktopVolumeIcon *volume_icon = XFDESKTOP_VOLUME_ICON(icon);
     XfdesktopFileIcon *src_file_icon = XFDESKTOP_FILE_ICON(src_icon);
     GFileInfo *src_info;
-    GFile *src_file, *parent, *dest_file;
+    GFile *src_file, *parent, *dest_file = NULL;
     gboolean result = FALSE;
     gchar *name;
     
@@ -692,7 +692,7 @@ xfdesktop_volume_icon_populate_context_menu(XfdesktopIcon *icon,
     GVolume *volume = volume_icon->priv->volume;
     GtkWidget *mi, *img;
     GMount *mount;
-    const gchar *icon_name, *icon_label;
+    const gchar *icon_name, *icon_label = NULL;
     
     img = gtk_image_new_from_stock(GTK_STOCK_OPEN, GTK_ICON_SIZE_MENU);
     gtk_widget_show(img);

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list