From 50c4d1e6ca4f5ecb2f4f2499af243b4627e12a25 Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 28 Jul 2001 11:22:28 +0000 Subject: [PATCH] Fixed some purify errors (unitialised reads) [SVN r10712] --- include/boost/regex.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/boost/regex.hpp b/include/boost/regex.hpp index 9b92f173..b163f5a8 100644 --- a/include/boost/regex.hpp +++ b/include/boost/regex.hpp @@ -527,11 +527,11 @@ public: template explicit reg_expression(const std::basic_string& p, flag_type f = regbase::normal, const Allocator& a = Allocator()) - : data(a), pkmp(0) { set_expression(p, f | regbase::use_except); } + : data(a), pkmp(0), error_code_(REG_EMPTY), _expression(0) { set_expression(p, f | regbase::use_except); } template reg_expression(I first, I last, flag_type f = regbase::normal, const Allocator& al = Allocator()) - : data(al), pkmp(0) + : data(al), pkmp(0), error_code_(REG_EMPTY), _expression(0) { size_type len = last-first; scoped_array a(new charT[len]);