Bug 1166575 - Silence uninitialized variable error in BluetoothHALInterface.cpp when building a debug B2G build. r=tzimmermann

This commit is contained in:
Cameron McCormack 2015-05-21 10:01:59 +10:00
parent 7851a5921b
commit fedc4dfb41

View File

@ -640,6 +640,8 @@ BluetoothHALInterface::GetRemoteDeviceProperty(
if (NS_SUCCEEDED(Convert(aRemoteAddr, remoteAddr)) &&
false /* TODO: we don't support any values for aName currently */) {
// silence uninitialized variable warning for |name|
name = static_cast<bt_property_type_t>(0);
status = mInterface->get_remote_device_property(&remoteAddr, name);
} else {
status = BT_STATUS_PARM_INVALID;