This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
regcomp.c: Create NOTHING node when would have been 0 length EXACT
authorKarl Williamson <public@khwilliamson.com>
Fri, 10 Aug 2012 15:11:11 +0000 (09:11 -0600)
committerKarl Williamson <public@khwilliamson.com>
Sun, 12 Aug 2012 01:32:31 +0000 (19:32 -0600)
commit0ccf8511670a0328f6f0142c36308afb3be61ba2
tree0c687daf42bf4431e52df1fbd7d520078b4e8721
parent34b39fc9cd81fbff0d52451a5c4570293817ca32
regcomp.c: Create NOTHING node when would have been 0 length EXACT

It's peculiar circumstances indeed that would get to this point in the
code with an EXACT node to be created, but nothing to populate it with.
Perhaps it is impossible; I'm not sure.  But commit
5f820f894e71b6970a5aa0fd763a84b647fd628a changed the behavior, which I
discovered in later re-reading the code.  Probably the node would be
populated with a single NUL.  Just in case it is possible to get here
under these peculiar circumstances, this commit adds code to handle the
case, with a NOTHING node instead of a 0 length EXACT.
regcomp.c