[gvfs] udisks2: Initialize variables to prevent them being used uninitialized



commit 592cfc134ae83e18c5806617a18810cbecb95a20
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Mon Nov 18 08:29:18 2013 +0200

    udisks2: Initialize variables to prevent them being used uninitialized
    
    https://bugzilla.gnome.org/show_bug.cgi?id=712382

 monitor/udisks2/gvfsudisks2volume.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2volume.c b/monitor/udisks2/gvfsudisks2volume.c
index 0b7c5c4..5e83c2c 100644
--- a/monitor/udisks2/gvfsudisks2volume.c
+++ b/monitor/udisks2/gvfsudisks2volume.c
@@ -1547,8 +1547,8 @@ gvfs_udisks2_volume_mount (GVolume             *_volume,
                                                             block);
           if (udisks_drive != NULL)
             {
-              gchar *drive_name;
-              gchar *drive_desc;
+              gchar *drive_name = NULL;
+              gchar *drive_desc = NULL;
 
 #if UDISKS_CHECK_VERSION(2,0,90)
               {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]