[rhythmbox] mpid: initialize dbus error before trying to use it (bug #598135)



commit 3ff2299f7d7e3f881d8a0eedfca6b5a1b1016a8f
Author: Jerry Tan <jerry tan sun com>
Date:   Thu Oct 15 21:40:45 2009 +1000

    mpid: initialize dbus error before trying to use it (bug #598135)

 lib/libmediaplayerid/mpid-hal.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/lib/libmediaplayerid/mpid-hal.c b/lib/libmediaplayerid/mpid-hal.c
index e97730e..076a7ba 100644
--- a/lib/libmediaplayerid/mpid-hal.c
+++ b/lib/libmediaplayerid/mpid-hal.c
@@ -102,6 +102,7 @@ find_portable_audio_player_udi (LibHalContext *context, MPIDDevice *device, cons
 	libhal_free_string_array (udis);
 
 	/* while we're here, grab the volume UUID */
+	dbus_error_init (&error);
 	device->fs_uuid = libhal_device_get_property_string (context, udi, "volume.uuid", &error);
 	free_dbus_error ("finding volume UUID", &error);
 



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