summaryrefslogtreecommitdiff
path: root/Build/source
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2022-01-31 23:19:46 +0000
committerKarl Berry <karl@freefriends.org>2022-01-31 23:19:46 +0000
commita72b06e09999ab6639f6ecb901490d4d8407c0b0 (patch)
tree05343cde2e7c8c78684347d82dd2d618efaf2b6f /Build/source
parent08d2b03dc36105d78d8541b3380978dc16786d6a (diff)
oops, avoid mid-block decl
git-svn-id: svn://tug.org/texlive/trunk@61830 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Build/source')
-rw-r--r--Build/source/texk/xdvik/dvi-init.c3
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;