Fix possible invalid read while attempting to load module-bluetooth-device.

This commit is contained in:
Luiz Augusto von Dentz 2008-10-09 19:31:43 -03:00 committed by Lennart Poettering
parent 9fd82c1964
commit 6ad65da869

View file

@ -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;
}