From a362488246bad6cc36138e37f78c141d246aa8da Mon Sep 17 00:00:00 2001 From: Andrzej Rybczak Date: Sun, 16 Sep 2012 01:54:47 +0200 Subject: [PATCH] regex filter: fix possibility of failing assertion in RegexItemFilter --- src/regex_filter.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/regex_filter.h b/src/regex_filter.h index 4258a2b1..047a29be 100644 --- a/src/regex_filter.h +++ b/src/regex_filter.h @@ -66,7 +66,7 @@ template struct RegexItemFilter bool operator()(const Item &item) { if (m_rx.regex().empty()) return true; - if (!m_rx.error().empty()) + if (!m_rx.compiled() || !m_rx.error().empty()) return false; return m_filter(m_rx, item); }