summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz@openbossa.org>2008-12-05 15:47:37 -0300
committerLennart Poettering <lennart@poettering.net>2009-01-12 20:26:39 +0100
commit09e3c5e7160047e3691fc94603c0c9f48f60d5bc (patch)
tree0a2f43df02caf2088e58a6473c54d47fc7c558ed
parenta9131ff2caae83707483feb1d0c9b54367d5d970 (diff)
Fix bug walking on module list.
-rw-r--r--src/modules/bluetooth/module-bluetooth-discover.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c
index 36c0a35e..ddf944a1 100644
--- a/src/modules/bluetooth/module-bluetooth-discover.c
+++ b/src/modules/bluetooth/module-bluetooth-discover.c
@@ -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;