From 0daa0ad4574aa85d0d8e2a17d6d326dd1c8950f3 Mon Sep 17 00:00:00 2001 From: ache Date: Wed, 14 Sep 1994 21:35:31 +0000 Subject: Fix bug with searching "" pattern, cause 'more' always shows next line on "/" instead of searching next pattern --- lib/libcompat/4.3/regex.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/libcompat/4.3/regex.c') 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); -- cgit v1.1