From 960bc0eabd1c7ffc919fdd8862e820903bec2745 Mon Sep 17 00:00:00 2001 From: miloyip Date: Thu, 28 May 2015 10:10:38 +0800 Subject: [PATCH] Fix gcc warning --- include/rapidjson/internal/regex.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; }