Check if reallocation of PL_linestr is necessary before doing it.
authorrafl <rafl@bd8105ee-0ff8-0310-8827-fb3f25b6796d>
Sat, 4 Oct 2008 13:18:02 +0000 (13:18 +0000)
committerrafl <rafl@bd8105ee-0ff8-0310-8827-fb3f25b6796d>
Sat, 4 Oct 2008 13:18:02 +0000 (13:18 +0000)
commitc2cbbc7a0c7a113a65db74d376d83da833a5f25f
treee5d4384540cb8d8cc5dfd1298c5269b33599c925
parent94f9c7825cc593bccbdb9955d7016ea6945d4236
Check if reallocation of PL_linestr is necessary before doing it.

That way memory curruption caused by SvGROW on a PL_linestr comming from perl
-e goes away.

git-svn-id: http://dev.catalyst.perl.org/repos/bast/Devel-Declare/1.000/trunk@4876 bd8105ee-0ff8-0310-8827-fb3f25b6796d
Declare.xs