diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-01-08 10:27:05 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-01-08 10:27:05 +0000 |
commit | 23a4b43d6a98912d505458daeced44b22830a773 (patch) | |
tree | 52de9567f933ce28d8def6e6eca3e6988e8004bf /posix/regexec.c | |
parent | e3e60f6bdc80109e6cfbd092049a4bbb2f43c457 (diff) |
Updated to fedora-glibc-20090108T1017cvs/fedora-glibc-2_9_90-2
Diffstat (limited to 'posix/regexec.c')
-rw-r--r-- | posix/regexec.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/posix/regexec.c b/posix/regexec.c index 135efe7441..7bf0c08a78 100644 --- a/posix/regexec.c +++ b/posix/regexec.c @@ -1,5 +1,5 @@ /* Extended regular expression matching and search library. - Copyright (C) 2002, 2003, 2004, 2005, 2007 Free Software Foundation, Inc. + Copyright (C) 2002, 2003, 2004, 2005, 2007, 2009 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Isamu Hasegawa <isamu@yamato.ibm.com>. @@ -1004,6 +1004,11 @@ prune_impossible_nodes (mctx) re_node_set_free (&sctx.limits); if (BE (ret != REG_NOERROR, 0)) goto free_return; + if (sifted_states[0] == NULL) + { + ret = REG_NOMATCH; + goto free_return; + } } re_free (mctx->state_log); mctx->state_log = sifted_states; |