This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
debugger tweak (wasn't printing a newline after recalled commands)
[perl5.git] / run.c
diff --git a/run.c b/run.c
index c38df7f..b46df8f 100644 (file)
--- a/run.c
+++ b/run.c
@@ -1,6 +1,6 @@
 /*    run.c
  *
- *    Copyright (c) 1991-1997, Larry Wall
+ *    Copyright (c) 1991-1999, Larry Wall
  *
  *    You may distribute under the terms of either the GNU General Public
  *    License or the Artistic License, as specified in the README file.
@@ -73,6 +73,7 @@ debop(OP *o)
 {
 #ifdef DEBUGGING
     SV *sv;
+    STRLEN n_a;
     deb("%s", PL_op_name[o->op_type]);
     switch (o->op_type) {
     case OP_CONST:
@@ -83,7 +84,7 @@ debop(OP *o)
        if (cGVOPo->op_gv) {
            sv = NEWSV(0,0);
            gv_fullname3(sv, cGVOPo->op_gv, Nullch);
-           PerlIO_printf(Perl_debug_log, "(%s)", SvPV(sv, PL_na));
+           PerlIO_printf(Perl_debug_log, "(%s)", SvPV(sv, n_a));
            SvREFCNT_dec(sv);
        }
        else