[PATCH 5.8 105/186] perf jevents: Fix suspicious code in fixregex()