Skip to content

Commit

Permalink
Do not use implicit conversion from 0/nullptr to std::string
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamer-dead authored Sep 23, 2024
1 parent 058ad92 commit f9a917a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fast_library.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit f9a917a

Please sign in to comment.