[perl #37163] dprofpp array subscript error
[p5sagit/p5-mst-13.2.git] / utils / dprofpp.PL
index 6270940..f9c487e 100644 (file)
@@ -735,7 +735,7 @@ sub parsestack {
 
                my $ot = $t;
                if ( $dir eq '/' ) {
-                 $syst = $stack[-1][0];
+                 $syst = $stack[-1][0] if scalar @stack;
                  $usert = '&';
                  $dir = '-';
                  #warn("Inserted exit for $stack[-1][0].\n")