summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 20:05:14 (GMT)
committerAnas Nashif <anas.nashif@intel.com>2013-08-26 12:27:18 (GMT)
commit9118d3fe7a80754b7d619cb81852d26dc6d7a353 (patch)
tree79e0152b36dbdf8a4e87b7625f08328dad558a3b
parentfc99137a93e86bb7932736732f757bbb80bee858 (diff)
downloadboost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.zip
boost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.tar.gz
boost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.tar.bz2
no segfault in regex filterrefs/changes/78/8778/1
-rw-r--r--boost/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 100644
--- 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,