summaryrefslogtreecommitdiff
path: root/posix/regexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'posix/regexec.c')
-rw-r--r--posix/regexec.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/posix/regexec.c b/posix/regexec.c
index c524ce8fb6..be361cf51f 100644
--- a/posix/regexec.c
+++ b/posix/regexec.c
@@ -2198,7 +2198,7 @@ transit_state (err, mctx, state)
{
/* don't use transition table */
next_state = transit_state_sb (err, mctx, state);
- if (BE (next_state == NULL && err != REG_NOERROR, 0))
+ if (BE (next_state == NULL && *err != REG_NOERROR, 0))
return NULL;
}
#endif