summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Build/source/texk/web2c/lib/texmfmp.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/Build/source/texk/web2c/lib/texmfmp.c b/Build/source/texk/web2c/lib/texmfmp.c
index d876e075170..8511256ba11 100644
--- a/Build/source/texk/web2c/lib/texmfmp.c
+++ b/Build/source/texk/web2c/lib/texmfmp.c
@@ -1221,6 +1221,11 @@ open_in_or_pipe P3C(FILE **, f_ptr, int, filefmt, const_string, fopen_mode)
*f_ptr = NULL;
fname = (string)xmalloc(strlen(nameoffile+1));
strcpy(fname,nameoffile+1);
+#if !defined(pdfTeX) && !defined(pdfeTeX)
+ if (fullnameoffile)
+ free (fullnameoffile);
+ fullnameoffile = xstrdup (fname);
+#endif
*f_ptr = popen(fname+1,"r");
free(fname);
for (i=0; i<=15; i++) {