pp_chdir Win32 fix
Michael G. Schwern [Thu, 20 Sep 2001 21:21:34 +0000 (17:21 -0400)]
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;