summaryrefslogtreecommitdiffstats
path: root/lib/libc/regex/regcomp.c
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2019-02-05 20:57:30 +0000
committermillert <millert@openbsd.org>2019-02-05 20:57:30 +0000
commit922426e12903b564c261a1aa4628ea473c0f2f1b (patch)
treee34ef16a6a393957bc804c0d9c0a513131043533 /lib/libc/regex/regcomp.c
parentflesh out "status" a little; ok florian (diff)
downloadwireguard-openbsd-922426e12903b564c261a1aa4628ea473c0f2f1b.tar.xz
wireguard-openbsd-922426e12903b564c261a1aa4628ea473c0f2f1b.zip
Fix typo in last commit.
Diffstat (limited to 'lib/libc/regex/regcomp.c')
-rw-r--r--lib/libc/regex/regcomp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/regex/regcomp.c b/lib/libc/regex/regcomp.c
index 6e63550185d..3f2d46d0512 100644
--- a/lib/libc/regex/regcomp.c
+++ b/lib/libc/regex/regcomp.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: regcomp.c,v 1.33 2019/02/05 19:38:37 millert Exp $ */
+/* $OpenBSD: regcomp.c,v 1.34 2019/02/05 20:57:30 millert Exp $ */
/*-
* Copyright (c) 1992, 1993, 1994 Henry Spencer.
* Copyright (c) 1992, 1993, 1994
@@ -558,7 +558,7 @@ p_simp_re(struct parse *p,
/* FALLTHROUGH */
default:
if (p->error != 0)
- return;
+ return(0); /* Definitely not $... */
ordinary(p, (char)c);
break;
}