clear std:string mac_address after use is finished, as it remains in scope

This commit is contained in:
fduncanh
2021-08-03 23:56:48 -04:00
parent a3ebb64d0c
commit 2be2a45878

View File

@@ -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) {