summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
Diffstat (limited to 'CyteKit')
-rw-r--r--CyteKit/PerlCompatibleRegEx.hpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/CyteKit/PerlCompatibleRegEx.hpp b/CyteKit/PerlCompatibleRegEx.hpp
index 38a9462..602f446 100644
--- a/CyteKit/PerlCompatibleRegEx.hpp
+++ b/CyteKit/PerlCompatibleRegEx.hpp
@@ -85,6 +85,7 @@ class Pcre {
}
pcre_fullinfo(code_, study_, PCRE_INFO_CAPTURECOUNT, &capture_);
+ _assert(capture_ >= 0);
matches_ = new int[(capture_ + 1) * 3];
}