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:
parent
058ad92093
commit
4e105bc41a
@ -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];
|
||||
|
Loading…
Reference in New Issue
Block a user