mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-20 16:50:48 +00:00
initialize empty string_view with empty string so std::string_view::begin does not point to null
This commit is contained in:
parent
5ba1b5d43c
commit
003bbb2685
@ -79,7 +79,7 @@ TEST(FindNotSymbols, ExtraSymbols)
|
||||
|
||||
TEST(FindNotSymbols, EmptyString)
|
||||
{
|
||||
std::string_view s;
|
||||
std::string_view s = "";
|
||||
test_find_first_not<'h', 'e', 'l', 'o', 'w', 'r', 'd', ' '>(s, s.end());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user