summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 20:05:14 (GMT)
committerChanho Park <chanho61.park@samsung.com>2014-12-11 10:00:15 (GMT)
commitd48c8fcfe2e682c8a7d4f2a127838ea5f10e4272 (patch)
treea3177a059d9f9c4cbf3b244e951639796715284e
parent11de24e3b46636390e81d680827bb541634d5d6a (diff)
downloadboost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.zip
boost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.tar.gz
boost-d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272.tar.bz2
no segfault in regex filter
-rwxr-xr-xboost/iostreams/filter/regex.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/boost/iostreams/filter/regex.hpp b/boost/iostreams/filter/regex.hpp
index e6efd6d..b202e7d 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,