aboutsummaryrefslogtreecommitdiffstats
path: root/regex.c
diff options
context:
space:
mode:
authorFumitoshi UKAI <ukai@debian.or.jp>2002-01-16 04:38:06 +0000
committerFumitoshi UKAI <ukai@debian.or.jp>2002-01-16 04:38:06 +0000
commite5106ef688a08a96794024107d860d8a2e061ff9 (patch)
tree0fdc21a16d74c654facc9d94cc411e7dcef378d2 /regex.c
parent[w3m-dev 02847] (diff)
downloadw3m-e5106ef688a08a96794024107d860d8a2e061ff9.tar.gz
w3m-e5106ef688a08a96794024107d860d8a2e061ff9.zip
[w3m-dev 02851]
* regex.c (newRegex0): fix return NULL; From: Tsutomu Okada <okada@furuno.co.jp>
Diffstat (limited to '')
-rw-r--r--regex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex.c b/regex.c
index 4409af9..f26d9b8 100644
--- a/regex.c
+++ b/regex.c
@@ -1,4 +1,4 @@
-/* $Id: regex.c,v 1.12 2002/01/16 02:50:04 ukai Exp $ */
+/* $Id: regex.c,v 1.13 2002/01/16 04:38:06 ukai Exp $ */
/*
* regex: Regular expression pattern match library
*
@@ -175,8 +175,8 @@ newRegex0(char **ex, int igncase, Regex *regex, char **msg, int level)
if (st_ptr >= &regex->storage[STORAGE_MAX]) {
if (msg)
*msg = "Regular expression too long";
+ return NULL;
}
- return NULL;
}
*(st_ptr++) = '\0';
re->p.pattern = r;