1
0
mirror of https://github.com/unrealircd/unrealircd.git synced 2026-07-07 12:43:14 +02:00

Juse in case pcre2_get_error_message() fails...

This commit is contained in:
Bram Matthys
2019-10-11 11:17:29 +02:00
parent 1d0fa3278f
commit 33c176e59e
+1
View File
@@ -410,6 +410,7 @@ Match *unreal_create_match(MatchType type, char *str, char **error)
m->ext.pcre2_expr = pcre2_compile(str, PCRE2_ZERO_TERMINATED, options, &errorcode, &erroroffset, NULL);
if (m->ext.pcre2_expr == NULL)
{
*buf2 = '\0';
pcre2_get_error_message(errorcode, buf2, sizeof(buf2));
if (error)
{