diff --git a/Bluetooth/Functions.cpp b/Bluetooth/Functions.cpp index b234d1d..2f87185 100644 --- a/Bluetooth/Functions.cpp +++ b/Bluetooth/Functions.cpp @@ -32,7 +32,7 @@ bool Functions::Ping(const std::string& macAddress) memset(&socketAddress, 0, sizeof(socketAddress)); socketAddress.l2_family = AF_BLUETOOTH; - bdaddr_t bdaddr; + bdaddr_t bdaddr({{0, 0, 0, 0, 0, 0}}); bacpy(&socketAddress.l2_bdaddr, &bdaddr); if (bind(socketDescriptor, reinterpret_cast(&socketAddress), sizeof(socketAddress)) < 0)