aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog7
-rw-r--r--regex.c4
2 files changed, 8 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 8f87b5e..dada8c3 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2002-01-16 Tsutomu Okada <okada@furuno.co.jp>
+
+ * [w3m-dev 02851]
+ * regex.c (newRegex0): fix return NULL;
+
2002-01-16 Yoshinobu Sakane <sakane@d4.bsd.nes.nec.co.jp>
* [w3m-dev 02847]
@@ -1998,4 +2003,4 @@
* release-0-2-1
* import w3m-0.2.1
-$Id: ChangeLog,v 1.227 2002/01/16 02:51:37 ukai Exp $
+$Id: ChangeLog,v 1.228 2002/01/16 04:38:06 ukai Exp $
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;