summaryrefslogtreecommitdiff
path: root/CyteKit
diff options
context:
space:
mode:
authorJay Freeman (saurik) <saurik@saurik.com>2011-06-10 12:22:36 -0700
committerJay Freeman (saurik) <saurik@saurik.com>2011-06-10 12:22:36 -0700
commite85bcceb1f72ea2088bbb4ff799f21b5da0a0e78 (patch)
treea0924a1cbc2e40553164c8ab20e6b0bf90390e4b /CyteKit
parent543e172ac58fea0cdaa244dadfa9538c975cccc6 (diff)
Sanity check pcre_fullinfo (not that it helps clang).
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];
}