This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
pp_chdir Win32 fix
authorMichael G. Schwern <schwern@pobox.com>
Thu, 20 Sep 2001 21:21:34 +0000 (17:21 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 21 Sep 2001 12:14:41 +0000 (12:14 +0000)
Message-ID: <20010920212134.Y28291@blackrider>

p4raw-id: //depot/perl@12107

pp_sys.c

index 0fb4521..40273ce 100644 (file)
--- a/pp_sys.c
+++ b/pp_sys.c
@@ -3385,8 +3385,10 @@ PP(pp_chdir)
        {
            tmps = SvPV(*svp, n_a);
        }
-       else
-           tmps = Nullch;
+       else {            
+            PUSHi(0);
+            RETURN;
+        }
     }
     else
        tmps = POPpx;