From a5b8a93b59053052b3fb7369759dc539f8b231bf Mon Sep 17 00:00:00 2001 From: "Andrey A. Chernov" 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') diff --git a/lib/libcompat/4.3/regex.c b/lib/libcompat/4.3/regex.c index f89c32c6d7c7..89d6400b8d7d 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.3