[glib] GDBusNodeInfo: remove a spurious for loop
- From: Rui Matos <rtcm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] GDBusNodeInfo: remove a spurious for loop
- Date: Wed, 11 Jul 2012 13:19:35 +0000 (UTC)
commit eda1735029e01d6391fe8a4cde6c5688727c8183
Author: Rui Matos <tiagomatos gmail com>
Date: Tue Jul 10 11:38:34 2012 +0200
GDBusNodeInfo: remove a spurious for loop
https://bugzilla.gnome.org/show_bug.cgi?id=679671
gio/gdbusintrospection.c | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/gio/gdbusintrospection.c b/gio/gdbusintrospection.c
index e24e5a7..30ad266 100644
--- a/gio/gdbusintrospection.c
+++ b/gio/gdbusintrospection.c
@@ -1817,11 +1817,8 @@ g_dbus_node_info_new_for_xml (const gchar *xml_data,
/* clean up */
for (n = 0; n < num_nodes; n++)
{
- for (n = 0; n < num_nodes; n++)
- {
- g_dbus_node_info_unref (ughret[n]);
- ughret[n] = NULL;
- }
+ g_dbus_node_info_unref (ughret[n]);
+ ughret[n] = NULL;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]