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
This commit is contained in:
Fredrik Holmqvist 2011-06-29 21:13:12 +00:00
parent e416dbbd1b
commit 6831484d63
1 changed files with 1 additions and 1 deletions

View File

@ -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++;
}