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
parent 8e3e88df8b
commit 931cbd19f2
2 changed files with 2 additions and 2 deletions

View file

@ -73,7 +73,7 @@ load-module module-native-protocol-unix
#load-module module-rtp-send source=rtp.monitor
### Enable flat volumes where possible
load-module module-flat-volumes
load-module module-flat-volume
### Automatically restore the volume of streams and devices
load-module module-device-restore

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