[gnome-disk-utility] Properly initialize variable



commit 891972ffbe6cc9d16d9d0fd2be6b2c66d4e04748
Author: David Zeuthen <zeuthen gmail com>
Date:   Mon Jul 9 11:29:03 2012 -0400

    Properly initialize variable
    
    All these compiler warnings and no warning about this. Great.
    
    Signed-off-by: David Zeuthen <zeuthen gmail com>

 src/disks/gduwindow.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/disks/gduwindow.c b/src/disks/gduwindow.c
index 95795da..4c134ee 100644
--- a/src/disks/gduwindow.c
+++ b/src/disks/gduwindow.c
@@ -1911,7 +1911,7 @@ update_device_page_for_drive (GduWindow      *window,
 
   if (ata != NULL)
     {
-      gboolean is_ssd;
+      gboolean is_ssd = FALSE;
       if (udisks_drive_get_rotation_rate (drive) == 0)
         is_ssd = TRUE;
       if (udisks_drive_ata_get_pm_supported (ata) && !is_ssd)



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