Fix bug walking on module list.

This commit is contained in:
Luiz Augusto von Dentz 2008-12-05 15:47:37 -03:00 committed by Lennart Poettering
parent 82f09b6d8f
commit dcd498c5ad

View file

@ -94,7 +94,7 @@ static void module_free(struct module *m) {
static struct module* module_find(struct device *d, const char *profile) {
struct module *m;
for (m = d->module_list; d; d = d->next)
for (m = d->module_list; m; m = m->next)
if (pa_streq(m->profile, profile))
return m;