summaryrefslogtreecommitdiffstats
path: root/lib/libcompat
diff options
context:
space:
mode:
authorache <ache@FreeBSD.org>1994-09-14 21:35:31 +0000
committerache <ache@FreeBSD.org>1994-09-14 21:35:31 +0000
commit0daa0ad4574aa85d0d8e2a17d6d326dd1c8950f3 (patch)
treeb68bf5d44b6682c0791679f4ee1c833a08c33434 /lib/libcompat
parent9d1baa34829792cd51bc88cefeb65c196927168e (diff)
downloadFreeBSD-src-0daa0ad4574aa85d0d8e2a17d6d326dd1c8950f3.zip
FreeBSD-src-0daa0ad4574aa85d0d8e2a17d6d326dd1c8950f3.tar.gz
Fix bug with searching "" pattern, cause 'more' always shows
next line on "/<Enter>" instead of searching next pattern
Diffstat (limited to 'lib/libcompat')
-rw-r--r--lib/libcompat/4.3/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libcompat/4.3/regex.c b/lib/libcompat/4.3/regex.c
index f89c32c..89d6400 100644
--- a/lib/libcompat/4.3/regex.c
+++ b/lib/libcompat/4.3/regex.c
@@ -59,7 +59,7 @@ char *
re_comp(s)
char *s;
{
- if (s == NULL)
+ if (s == NULL || *s == '\0')
return (NULL);
if (re_regexp)
free(re_regexp);
OpenPOWER on IntegriCloud