diff options
-rw-r--r-- | kjs/regexp.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kjs/regexp.cpp b/kjs/regexp.cpp index a693fdc1a..c92a69d6a 100644 --- a/kjs/regexp.cpp +++ b/kjs/regexp.cpp @@ -149,6 +149,7 @@ RegExp::RegExp(const UString &p, int f) pcre2_get_error_message(errorCode, errorMsg, sizeof(errorMsg)); fprintf(stderr, "KJS: pcre_compile() failed with '%s'\n", errorMsg); #endif + match_data = nullptr; valid = false; return; } |