about summary refs log tree commit homepage
path: root/mwrap_core.h
diff options
context:
space:
mode:
Diffstat (limited to 'mwrap_core.h')
-rw-r--r--mwrap_core.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/mwrap_core.h b/mwrap_core.h
index 15df857..deb3bb3 100644
--- a/mwrap_core.h
+++ b/mwrap_core.h
@@ -389,10 +389,8 @@ static const char *mw_perl_src_file_cstr(unsigned *lineno)
 {
         const COP *cop = mwp_curcop();
         if (!cop) return NULL;
-        const char *fn = CopFILE(cop);
-        if (!fn) return NULL;
         *lineno = CopLINE(cop);
-        return fn;
+        return CopFILE(cop);
 }
 #        define SRC_FILE_CSTR(lineno) mw_perl_src_file_cstr(lineno)
 #endif /* MWRAP_PERL */