summaryrefslogtreecommitdiff
path: root/perl.c
diff options
context:
space:
mode:
authorChip Salzenberg <chip@perl.com>1997-03-21 14:44:56 +1200
committerChip Salzenberg <chip@atlantic.net>1997-03-22 15:34:25 +1200
commitf51d4af592c9b887ce9e5cd81ee4be01c8f37a36 (patch)
treec41f2a33aa645b3d7132aa86219411d76277c410 /perl.c
parent9a48f954e7ff810c2e5e8489c1ec22a718c4bb1c (diff)
downloadperl-f51d4af592c9b887ce9e5cd81ee4be01c8f37a36.tar.gz
Fix botch with G_NOARGS; PUSHMARK *is* required
Diffstat (limited to 'perl.c')
-rw-r--r--perl.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/perl.c b/perl.c
index dfda39fb68..fd3977921d 100644
--- a/perl.c
+++ b/perl.c
@@ -979,10 +979,7 @@ I32 flags; /* See G_* flags in cop.h */
}
Zero(&myop, 1, LOGOP);
- if (flags & G_NOARGS) {
- PUSHMARK(sp);
- }
- else
+ if (!(flags & G_NOARGS))
myop.op_flags |= OPf_STACKED;
myop.op_next = Nullop;
myop.op_flags |= OPf_KNOW;