[nautilus] Fix unintiallized GError in power management



commit fdb2ccedb2bfd3b2d6dfd5759913875b8d93834a
Author: A. Walton <awalton gnome org>
Date:   Mon Aug 10 19:56:47 2009 -0400

    Fix unintiallized GError in power management

 libnautilus-private/nautilus-file-utilities.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file-utilities.c b/libnautilus-private/nautilus-file-utilities.c
index aff876d..5814e54 100644
--- a/libnautilus-private/nautilus-file-utilities.c
+++ b/libnautilus-private/nautilus-file-utilities.c
@@ -1019,6 +1019,7 @@ get_power_manager_proxy (void)
 		DBusGConnection *bus;
 		GError *error;
 
+		error = NULL;
 		bus = dbus_g_bus_get (DBUS_BUS_SESSION, &error);
 		if (!bus)
 		{



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