summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 13:05:14 -0700
committerAnas Nashif <anas.nashif@intel.com>2013-08-26 08:27:18 -0400
commit9118d3fe7a80754b7d619cb81852d26dc6d7a353 (patch)
tree79e0152b36dbdf8a4e87b7625f08328dad558a3b
parentfc99137a93e86bb7932736732f757bbb80bee858 (diff)
downloadboost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.tar.gz
boost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.tar.bz2
boost-9118d3fe7a80754b7d619cb81852d26dc6d7a353.zip
no segfault in regex filter
-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 e6efd6d8ae..b202e7d3f8 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,