From 931cbd19f269a64dd4d8edfa592ac21500cbd380 Mon Sep 17 00:00:00 2001 From: Luiz Augusto von Dentz Date: Thu, 9 Oct 2008 19:31:43 -0300 Subject: Fix possible invalid read while attempting to load module-bluetooth-device. --- src/modules/bluetooth/module-bluetooth-discover.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/modules/bluetooth/module-bluetooth-discover.c') diff --git a/src/modules/bluetooth/module-bluetooth-discover.c b/src/modules/bluetooth/module-bluetooth-discover.c index a33ca648..79fb7a8a 100644 --- a/src/modules/bluetooth/module-bluetooth-discover.c +++ b/src/modules/bluetooth/module-bluetooth-discover.c @@ -346,7 +346,7 @@ static void load_module_for_device(struct userdata *u, struct device *d, const c pa_m = pa_module_load(u->module->core, "module-bluetooth-device", args); pa_xfree(args); - if (!m) { + if (!pa_m) { pa_log_debug("Failed to load module for device %s", d->object_path); return; } -- cgit