reset errno after C<require> search (as suggested by Larry)
Gurusamy Sarathy [Wed, 23 Sep 1998 10:52:27 +0000 (10:52 +0000)]
p4raw-id: //depot/perl@1855

pp_ctl.c

index da0f7a0..48a2ed2 100644 (file)
--- 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),