From 4676115e5756d6dfd7a72f5bd5aa5053e8117b54 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Peter=20W=C3=BCrtz?= Date: Wed, 15 Jan 2020 16:03:29 +0100 Subject: [PATCH] Fix maybe uninitialized warning / error --- peglib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/peglib.h b/peglib.h index dc97278..087e31a 100644 --- a/peglib.h +++ b/peglib.h @@ -1323,7 +1323,7 @@ public: return static_cast(-1); } - char32_t cp; + char32_t cp = 0; auto len = decode_codepoint(s, n, cp); if (!ranges_.empty()) {