summaryrefslogtreecommitdiff
path: root/bin/ed/re.c
diff options
context:
space:
mode:
Diffstat (limited to 'bin/ed/re.c')
-rw-r--r--bin/ed/re.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/ed/re.c b/bin/ed/re.c
index 948a05980d9..276094b7d73 100644
--- a/bin/ed/re.c
+++ b/bin/ed/re.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: re.c,v 1.4 1996/10/12 19:38:40 millert Exp $ */
+/* $OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $ */
/* $NetBSD: re.c,v 1.14 1995/03/21 09:04:48 cgd Exp $ */
/* re.c: This file contains the regular expression interface routines for
@@ -33,7 +33,7 @@
#if 0
static char *rcsid = "@(#)re.c,v 1.6 1994/02/01 00:34:43 alm Exp";
#else
-static char rcsid[] = "$OpenBSD: re.c,v 1.4 1996/10/12 19:38:40 millert Exp $";
+static char rcsid[] = "$OpenBSD: re.c,v 1.5 1996/12/14 12:17:57 mickey Exp $";
#endif
#endif /* not lint */
@@ -73,7 +73,7 @@ get_compiled_pattern()
return NULL;
}
patlock = 0;
- if (n = regcomp(exp, exps, 0)) {
+ if ((n = regcomp(exp, exps, 0)) != 0) {
regerror(n, exp, errmsg, sizeof errmsg);
free(exp);
return exp = NULL;