5137f5
From 951472a6f5914bbc56587d56e97fa40ff1908794 Mon Sep 17 00:00:00 2001
5137f5
From: Tomas Bzatek <tbzatek@redhat.com>
5137f5
Date: Wed, 22 Jan 2014 14:42:09 +0100
5137f5
Subject: [PATCH 2/3] udiskslinuxmanager.c: Don't use uninitialized wait_data
5137f5
 struct
5137f5
5137f5
---
5137f5
 src/udiskslinuxmanager.c | 5 ++---
5137f5
 1 file changed, 2 insertions(+), 3 deletions(-)
5137f5
5137f5
diff --git a/src/udiskslinuxmanager.c b/src/udiskslinuxmanager.c
5137f5
index d15eba6..53703d1 100644
5137f5
--- a/src/udiskslinuxmanager.c
5137f5
+++ b/src/udiskslinuxmanager.c
5137f5
@@ -538,7 +538,6 @@ handle_mdraid_create (UDisksManager         *_object,
5137f5
 {
5137f5
   UDisksLinuxManager *manager = UDISKS_LINUX_MANAGER (_object);
5137f5
   UDisksObject *array_object = NULL;
5137f5
-  WaitForArrayData wait_data;
5137f5
   uid_t caller_uid;
5137f5
   GError *error = NULL;
5137f5
   const gchar *message;
5137f5
@@ -778,8 +777,8 @@ handle_mdraid_create (UDisksManager         *_object,
5137f5
   if (array_object == NULL)
5137f5
     {
5137f5
       g_prefix_error (&error,
5137f5
-                      "Error waiting for array object after creating /dev/md%d",
5137f5
-                      wait_data.md_num);
5137f5
+                      "Error waiting for array object after creating %s",
5137f5
+                      raid_device_file);
5137f5
       g_dbus_method_invocation_take_error (invocation, error);
5137f5
       goto out;
5137f5
     }
5137f5
-- 
5137f5
1.8.1.5
5137f5