mirror of
https://github.com/morgan9e/UxPlay
synced 2026-04-14 00:04:13 +09:00
clear std:string mac_address after use is finished, as it remains in scope
This commit is contained in:
@@ -262,8 +262,8 @@ int main (int argc, char *argv[]) {
|
||||
mac_address = random_mac();
|
||||
LOGI("using randomly-generated MAC address %s\n",mac_address.c_str());
|
||||
}
|
||||
|
||||
parse_hw_addr(mac_address, server_hw_addr);
|
||||
mac_address.clear();
|
||||
|
||||
if (start_server(server_hw_addr, server_name, display_size, tcp, udp,
|
||||
videoflip,use_audio, debug_log) != 0) {
|
||||
|
||||
Reference in New Issue
Block a user