1
0
mirror of https://github.com/pavel-odintsov/fastnetmon synced 2024-11-22 20:42:03 +01:00

Do not use implicit conversion from 0/nullptr to std::string (#1020)

This commit is contained in:
Dreamer 2024-09-23 19:31:37 +02:00 committed by GitHub
parent 058ad92093
commit 4e105bc41a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -144,7 +144,7 @@ std::string get_net_address_from_network_as_string(std::string network_cidr_form
split(subnet_as_string, network_cidr_format, boost::is_any_of("/"), boost::token_compress_on);
if (subnet_as_string.size() != 2) {
return 0;
return std::string();
}
return subnet_as_string[0];