diff options
author | Eugene Alterman <Eugene.Alterman@bremer-inc.com> | 1998-03-24 14:41:06 +1200 |
---|---|---|
committer | Tim Bunce <Tim.Bunce@ig.co.uk> | 1998-05-02 08:47:47 +1200 |
commit | f64404bb4c0d93b2721250d7dd8abe6fdf8af139 (patch) | |
tree | 9126bc54288afb079b0e951f6249f03406c74db3 | |
parent | d1a8687553be28e6469abfe81c57915ce0c55f64 (diff) | |
download | perl-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |