From 4e105bc41ac0141e92a49af6fed770cf4a5cac39 Mon Sep 17 00:00:00 2001 From: Dreamer Date: Mon, 23 Sep 2024 19:31:37 +0200 Subject: [PATCH] Do not use implicit conversion from 0/nullptr to std::string (#1020) --- src/fast_library.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fast_library.cpp b/src/fast_library.cpp index ac89051..a217371 100644 --- a/src/fast_library.cpp +++ b/src/fast_library.cpp @@ -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];