From d48c8fcfe2e682c8a7d4f2a127838ea5f10e4272 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Tue, 30 Oct 2012 13:05:14 -0700 Subject: no segfault in regex filter --- boost/iostreams/filter/regex.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3