summaryrefslogtreecommitdiff
path: root/pp_ctl.c
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1998-09-23 10:52:27 +0000
committerGurusamy Sarathy <gsar@cpan.org>1998-09-23 10:52:27 +0000
commitd8bfb8bddf933a815b590823bd52295534e6ded0 (patch)
tree1869ec33a1495cd9dac410767afba099345206a3 /pp_ctl.c
parentae6c4aacfc47e208b21e9afbaa0d848ac3097fbc (diff)
downloadperl-d8bfb8bddf933a815b590823bd52295534e6ded0.tar.gz
reset errno after C<require> search (as suggested by Larry)
p4raw-id: //depot/perl@1855
Diffstat (limited to 'pp_ctl.c')
-rw-r--r--pp_ctl.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/pp_ctl.c b/pp_ctl.c
index da0f7a03c2..48a2ed294c 100644
--- a/pp_ctl.c
+++ b/pp_ctl.c
@@ -2674,6 +2674,8 @@ PP(pp_require)
RETPUSHUNDEF;
}
+ else
+ errno = 0;
/* Assume success here to prevent recursive requirement. */
(void)hv_store(GvHVn(PL_incgv), name, strlen(name),