summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlberto Mardegan <mardy@users.sourceforge.net>2007-08-02 10:16:30 +0000
committerAlberto Mardegan <mardy@users.sourceforge.net>2007-08-02 10:16:30 +0000
commitccbf1c56218d805f8efd90860e6661db81861176 (patch)
tree14611a5c75e1b1e1817936af079f36b9dcd84f9a
parenta8162661aa4e7f768f6dc9ea1166d4c5eea0b1da (diff)
Properly scan the list nodes.
git-svn-id: https://mission-control.svn.sourceforge.net/svnroot/mission-control/trunk@94 d91c8aed-3f2b-0410-a83d-924a1c20a0ba
-rw-r--r--ChangeLog6
-rw-r--r--libmissioncontrol/mc-manager.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 7d8e6776..e03fe7ea 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-08-02 Alberto Mardegan <alberto.mardegan@nokia.com>
+
+ Patch from Will Thompson:
+ * libmissioncontrol/mc-manager.c:
+ Properly scan the list nodes.
+
2007-08-01 Alberto Mardegan <alberto.mardegan@nokia.com>
* src/mcd-connection.c:
diff --git a/libmissioncontrol/mc-manager.c b/libmissioncontrol/mc-manager.c
index 5be796c0..4f8f3d30 100644
--- a/libmissioncontrol/mc-manager.c
+++ b/libmissioncontrol/mc-manager.c
@@ -422,7 +422,7 @@ _mc_manager_protocol_lookup (McManager *manager, const gchar *name)
g_return_val_if_fail (name != NULL, NULL);
g_return_val_if_fail (*name != '\0', NULL);
- for (i = MC_MANAGER_PRIV (manager)->protocols; NULL != i; i++)
+ for (i = MC_MANAGER_PRIV (manager)->protocols; NULL != i; i = i->next)
{
McProtocol *protocol = (McProtocol *) i->data;