Merge pull request #83 from pwuertz/patch-1

Fix maybe uninitialized warning / error
This commit is contained in:
yhirose 2020-01-15 12:53:33 -05:00 committed by GitHub
commit c59b0b8f0d
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); return static_cast<size_t>(-1);
} }
char32_t cp; char32_t cp = 0;
auto len = decode_codepoint(s, n, cp); auto len = decode_codepoint(s, n, cp);
if (!ranges_.empty()) { if (!ranges_.empty()) {