[gnome-disk-utility/new-ui] Initialize drive_parent to NULL



commit 8c08289e37a5d1d260d0ae8a2a4539d7ddc06ce7
Author: David Zeuthen <davidz redhat com>
Date:   Tue Dec 1 00:43:01 2009 -0500

    Initialize drive_parent to NULL

 src/gdu/gdu-pool.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gdu/gdu-pool.c b/src/gdu/gdu-pool.c
index 307034a..d3677de 100644
--- a/src/gdu/gdu-pool.c
+++ b/src/gdu/gdu-pool.c
@@ -963,6 +963,8 @@ recompute_presentables (GduPool *pool)
                                 GduPresentable *drive_parent;
                                 gchar **port_object_paths;
 
+                                drive_parent = NULL;
+
                                 /* we are guaranteed that upstream ports all stem from the same expander or
                                  * host adapter - so just pick the first one */
                                 port_object_paths = gdu_device_drive_get_ports (device);



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