diff options
author | Anas Nashif <anas.nashif@intel.com> | 2012-10-30 13:05:14 -0700 |
---|---|---|
committer | Chanho Park <chanho61.park@samsung.com> | 2014-12-11 19:00:15 +0900 |
commit | d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272 (patch) | |
tree | a3177a059d9f9c4cbf3b244e951639796715284e | |
parent | 11de24e3b46636390e81d680827bb541634d5d6a (diff) | |
download | boost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.tar.gz boost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.tar.bz2 boost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.zip |
no segfault in regex filter
-rwxr-xr-x | boost/iostreams/filter/regex.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/iostreams/filter/regex.hpp b/boost/iostreams/filter/regex.hpp index e6efd6d8ae..b202e7d3f8 100755 --- a/boost/iostreams/filter/regex.hpp +++ b/boost/iostreams/filter/regex.hpp @@ -58,7 +58,7 @@ private: return; iterator first(&src[0], &src[0] + src.size(), re_, flags_); iterator last; - const Ch* suffix = 0; + const Ch* suffix = &src[0]; for (; first != last; ++first) { dest.insert( dest.end(), first->prefix().first, |