diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libcompat/4.3/regex.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
