regex filter: fix possibility of failing assertion in RegexItemFilter

master
Andrzej Rybczak 14 years ago
parent 077930df78
commit a362488246
  1. 2
      src/regex_filter.h

@ -66,7 +66,7 @@ template <typename T> 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);
}

Loading…
Cancel
Save