diff options
| author | Andrey A. Chernov <ache@FreeBSD.org> | 1994-09-14 22:25:15 +0000 |
|---|---|---|
| committer | Andrey A. Chernov <ache@FreeBSD.org> | 1994-09-14 22:25:15 +0000 |
| commit | a7f57b7141ee0ff5ef3fde7f982787fc0d296d62 (patch) | |
| tree | 77e3b79c57d130a2966d76be6fe66ce0b85af320 /lib/libcompat/4.3/regex.c | |
| parent | 28d8923ed0f9eba1a3d74bb7eb8317ea2859e8c8 (diff) | |
Notes
Diffstat (limited to 'lib/libcompat/4.3/regex.c')
| -rw-r--r-- | lib/libcompat/4.3/regex.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/libcompat/4.3/regex.c b/lib/libcompat/4.3/regex.c index 89d6400b8d7d..9b9697885e42 100644 --- a/lib/libcompat/4.3/regex.c +++ b/lib/libcompat/4.3/regex.c @@ -59,8 +59,11 @@ char * re_comp(s) char *s; { - if (s == NULL || *s == '\0') + if (s == NULL || *s == '\0') { + if (re_regexp == NULL) + return "no previous regular expression"; return (NULL); + } if (re_regexp) free(re_regexp); if (re_errstr) |
