summaryrefslogtreecommitdiff
path: root/lib/libcompat
diff options
context:
space:
mode:
authorAndrey A. Chernov <ache@FreeBSD.org>1994-09-14 21:35:31 +0000
committerAndrey A. Chernov <ache@FreeBSD.org>1994-09-14 21:35:31 +0000
commita5b8a93b59053052b3fb7369759dc539f8b231bf (patch)
treeb68bf5d44b6682c0791679f4ee1c833a08c33434 /lib/libcompat
parentdea246f55aec0605fa5ef8d0eba6a8b248b21c28 (diff)
Notes
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 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);