diff options
Diffstat (limited to 'Build/source/texk')
-rw-r--r-- | Build/source/texk/xdvik/dvi-init.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Build/source/texk/xdvik/dvi-init.c b/Build/source/texk/xdvik/dvi-init.c index 127063d2f66..ed568b1400b 100644 --- a/Build/source/texk/xdvik/dvi-init.c +++ b/Build/source/texk/xdvik/dvi-init.c @@ -1242,8 +1242,7 @@ file_exists_p(const char *path, dviErrFlagT *errflag) /* fprintf(stderr, "after internal_open_dvi2: xfopen\n"); */ /* shouldn't happen */ - int rv = fstat(fileno(m_dvi_fp), &fstatbuf); - if (rv == -1) { + if (fstat(fileno(m_dvi_fp), &fstatbuf) == -1) { perror("xdvi: file_exists_p: fstat"); fclose(m_dvi_fp); m_dvi_fp = NULL; |