This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
#line directives without a filename leave the file name as it was
[perl5.git] / toke.c
diff --git a/toke.c b/toke.c
index f2e01d6..e2e10f2 100644 (file)
--- a/toke.c
+++ b/toke.c
@@ -495,8 +495,6 @@ S_incline(pTHX_ char *s)
     *t = '\0';
     if (t - s > 0)
        CopFILE_set(PL_curcop, s);
-    else
-       CopFILE_set(PL_curcop, PL_origfilename);
     *t = ch;
     CopLINE_set(PL_curcop, atoi(n)-1);
 }