From c0a83613730637154480d8274c9f89630e06739e Mon Sep 17 00:00:00 2001 From: John Maddock Date: Sat, 26 May 2001 11:58:19 +0000 Subject: [PATCH] Fixed purify warings about access to unitialised memory [SVN r10232] --- include/boost/regex/detail/regex_compile.hpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/include/boost/regex/detail/regex_compile.hpp b/include/boost/regex/detail/regex_compile.hpp index e8455e7b..8f7515a6 100644 --- a/include/boost/regex/detail/regex_compile.hpp +++ b/include/boost/regex/detail/regex_compile.hpp @@ -1730,8 +1730,13 @@ unsigned int BOOST_RE_CALL reg_expression::set_express return error_code(); } // extend: - /*dat = */add_simple(dat, re_detail::syntax_element_jump, re_detail::re_jump_size); + dat = add_simple(dat, re_detail::syntax_element_jump, re_detail::re_jump_size); data.align(); + // + // we don't know what value to put here yet, + // use an arbitrarily large value for now + // and check it later (TODO!) + ((re_detail::re_jump*)dat)->alt.i = INT_MAX/2; // now work out where to insert: unsigned int offset = 0;