[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
[PATCH] In iface_ip2str(), make sure to advance to next item before continue.
- From: David Cantrell <dcantrell redhat com>
- To: anaconda-devel-list redhat com
- Cc:
- Subject: [PATCH] In iface_ip2str(), make sure to advance to next item before continue.
- Date: Fri, 5 Dec 2008 20:13:05 -1000
We have to manually advance the iter when working with D-Bus, so if
continue in a loop, be sure to call the next() function on the iter.
---
isys/iface.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/isys/iface.c b/isys/iface.c
index 9bc5582..d0613e2 100644
--- a/isys/iface.c
+++ b/isys/iface.c
@@ -224,6 +224,7 @@ char *iface_ip2str(char *ifname, int family) {
-1, &error);
dbus_message_unref(message);
if (!devreply) {
+ dbus_message_iter_next(&a_iter);
continue;
}
--
1.6.0.3
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]