diff --git a/include/rapidjson/internal/regex.h b/include/rapidjson/internal/regex.h index bc47f95..1aff9e2 100644 --- a/include/rapidjson/internal/regex.h +++ b/include/rapidjson/internal/regex.h @@ -159,7 +159,7 @@ private: template class DecodedStream { public: - DecodedStream(SourceStream& ss) : ss_(ss) { Decode(); } + DecodedStream(SourceStream& ss) : ss_(ss), codepoint_() { Decode(); } unsigned Peek() { return codepoint_; } unsigned Take() { unsigned c = codepoint_; Decode(); return c; }