Skip to content

gregex: Ensure we translate the errcode without asserting on G_REGEX_ERROR_COMPILE

Since commit 8d5a44dc in order to ensure that we were setting the errcode in translate_compile_error(), we did an assert checking whether it was a valid value, but we assumed that 0 was not a valid error, while it is as it's the generic G_REGEX_ERROR_COMPILE.

So, set errcode and errmsg to invalid values before translating and ensure we've change them.

Fixes: #2694 (closed)

Merge request reports