From dc68903bb219c3fdaa17e2aa78a7ee5edfd74f0b Mon Sep 17 00:00:00 2001 From: John Wiegley Date: Thu, 12 Feb 2009 03:06:15 -0400 Subject: Added validation code for mask_t objects. --- src/mask.cc | 1 + 1 file changed, 1 insertion(+) (limited to 'src/mask.cc') diff --git a/src/mask.cc b/src/mask.cc index ed422b91..bf45e6f5 100644 --- a/src/mask.cc +++ b/src/mask.cc @@ -42,6 +42,7 @@ mask_t::mask_t(const string& pat) : expr() mask_t& mask_t::operator=(const string& pat) { expr.assign(pat.c_str(), regex::perl | regex::icase); + VERIFY(valid()); return *this; } -- cgit v1.2.3