summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEugene Alterman <Eugene.Alterman@bremer-inc.com>1998-03-24 14:41:06 +1200
committerTim Bunce <Tim.Bunce@ig.co.uk>1998-05-02 08:47:47 +1200
commitf64404bb4c0d93b2721250d7dd8abe6fdf8af139 (patch)
tree9126bc54288afb079b0e951f6249f03406c74db3
parentd1a8687553be28e6469abfe81c57915ce0c55f64 (diff)
downloadperl-f64404bb4c0d93b2721250d7dd8abe6fdf8af139.tar.gz
perl_call_method() bug fix (corrupt op pointer)
[this patch] fixes a bug in perl_call_method(). If "op" was null before a call and then it was set to point to a local variable "myop" it mast be restored back to null. p5p-msgid: 510415F72ECFD111A31700A0C9B3CCDE3098@efx98digmasa.bremer-inc.com
-rw-r--r--perl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/perl.c b/perl.c
index 9635b85d3d..4ce6a0a1df 100644
--- a/perl.c
+++ b/perl.c
@@ -1020,6 +1020,8 @@ I32 flags; /* See G_* flags in cop.h */
XPUSHs(sv_2mortal(newSVpv(methname,0)));
PUTBACK;
pp_method();
+ if(op == &myop)
+ op = Nullop;
return perl_call_sv(*stack_sp--, flags);
}