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:
parent
e416dbbd1b
commit
6831484d63
@ -183,7 +183,7 @@ device_get_children(device_t dev, device_t **devlistp, int *devcountp)
|
|||||||
device_t *list;
|
device_t *list;
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
while (list_get_next_item(&dev->children, child) != NULL) {
|
while ((child = list_get_next_item(&dev->children, child)) != NULL) {
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user