Fix bug walking on module list.
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>
Fri, 5 Dec 2008 18:47:37 +0000 (15:47 -0300)
committerLennart Poettering <lennart@poettering.net>
Wed, 17 Dec 2008 20:06:46 +0000 (21:06 +0100)
src/modules/bluetooth/module-bluetooth-discover.c

index 36c0a35..ddf944a 100644 (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;