Fixed purify warings about access to unitialised memory

[SVN r10232]
This commit is contained in:
John Maddock
2001-05-26 11:58:19 +00:00
parent 0ef48255a7
commit c0a8361373

View File

@ -1730,8 +1730,13 @@ unsigned int BOOST_RE_CALL reg_expression<charT, traits, Allocator>::set_express
return error_code(); return error_code();
} }
// extend: // 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(); 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: // now work out where to insert:
unsigned int offset = 0; unsigned int offset = 0;