Fix maybe uninitialized warning / error

This commit is contained in:
Peter Würtz 2020-01-15 16:03:29 +01:00 committed by GitHub
parent c0d2318b15
commit 4676115e57
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1323,7 +1323,7 @@ public:
return static_cast<size_t>(-1);
}
char32_t cp;
char32_t cp = 0;
auto len = decode_codepoint(s, n, cp);
if (!ranges_.empty()) {