v2 reoperators.c:
static int msre_op_within_execute(...) {
[...]
if (str->value == NULL) {
*error_msg = "Internal Error: match string is null.";
return -1;
}
[...]
if (error_msg == NULL) return -1;
*error_msg = NULL;
The last 2 lines must be at the very beginning of the function