From 9ac792f4c8d84f4e7dc8fa8d1eb254f0389b3b38 Mon Sep 17 00:00:00 2001 From: Karl Williamson Date: Sat, 24 Sep 2011 15:42:14 -0600 Subject: [PATCH] regexec.c: Add assertion check This makes sure before there is a segfault that the is_() functions actually have the side effect that this expects. --- regexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/regexec.c b/regexec.c index bdd5e3f..e6d3fa4 100644 --- a/regexec.c +++ b/regexec.c @@ -127,7 +127,7 @@ bool ok; \ ENTER; save_re_context(); \ ok=CAT2(is_utf8_,class)((const U8*)str); \ - assert(ok); LEAVE; } } STMT_END + assert(ok); assert(CAT2(PL_utf8_,class)); LEAVE; } } STMT_END /* Doesn't do an assert to verify that is correct */ #define LOAD_UTF8_CHARCLASS_NO_CHECK(class) STMT_START { \ -- 1.8.3.1