Fix bug with searching "" pattern, cause 'more' always shows
next line on "/<Enter>" instead of searching next pattern
This commit is contained in:
parent
dea246f55a
commit
a5b8a93b59
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2764
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user