From 6831484d63e6ebeabe0d8ae96bdfeb34f0de324a Mon Sep 17 00:00:00 2001 From: Fredrik Holmqvist Date: Wed, 29 Jun 2011 21:13:12 +0000 Subject: [PATCH] Guesswork but since #7750 stops in this loop, and all other similar loops look like this (and it works here): I think we need to update child. Let me know if I'm wrong. This should fix #7750. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42342 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/libs/compat/freebsd_network/compat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libs/compat/freebsd_network/compat.c b/src/libs/compat/freebsd_network/compat.c index febd146ba4..52594a7cd6 100644 --- a/src/libs/compat/freebsd_network/compat.c +++ b/src/libs/compat/freebsd_network/compat.c @@ -183,7 +183,7 @@ device_get_children(device_t dev, device_t **devlistp, int *devcountp) device_t *list; count = 0; - while (list_get_next_item(&dev->children, child) != NULL) { + while ((child = list_get_next_item(&dev->children, child)) != NULL) { count++; }