summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-05-24 05:05:19 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-05-24 05:05:19 +0000
commit288ec9e31566cfd8e9a63e1dd3d7e670d6e519b8 (patch)
tree8d03cf96cc56425fcb53e647664dddece64f300f /pp_ctl.c
parentcbadcae4e4f53b8eeb2aa1dd7b4a95e1efb3b915 (diff)
downloadperl-288ec9e31566cfd8e9a63e1dd3d7e670d6e519b8.tar.gz
return 0 rather than "" when scalar grep has nothing to iterate
on (brings behavior in line with documentation) p4raw-id: //depot/perl@3455
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index 49db741f82..19bfb2183c 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -667,7 +667,7 @@ PP(pp_grepstart)
if (PL_stack_base + *PL_markstack_ptr == SP) {
(void)POPMARK;
if (GIMME_V == G_SCALAR)
- XPUSHs(&PL_sv_no);
+ XPUSHi(0);
RETURNOP(PL_op->op_next->op_next);
}
PL_stack_sp = PL_stack_base + *PL_markstack_ptr + 1;