diff options
author | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 04:38:06 +0000 |
---|---|---|
committer | Fumitoshi UKAI <ukai@debian.or.jp> | 2002-01-16 04:38:06 +0000 |
commit | e5106ef688a08a96794024107d860d8a2e061ff9 (patch) | |
tree | 0fdc21a16d74c654facc9d94cc411e7dcef378d2 /regex.c | |
parent | [w3m-dev 02847] (diff) | |
download | w3m-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 >= ®ex->storage[STORAGE_MAX]) { if (msg) *msg = "Regular expression too long"; + return NULL; } - return NULL; } *(st_ptr++) = '\0'; re->p.pattern = r; |