texlive[61830] Build/source/texk/xdvik/dvi-init.c: oops, avoid

commits+karl at tug.org commits+karl at tug.org
Tue Feb 1 00:19:46 CET 2022


Revision: 61830
          http://tug.org/svn/texlive?view=revision&revision=61830
Author:   karl
Date:     2022-02-01 00:19:46 +0100 (Tue, 01 Feb 2022)
Log Message:
-----------
oops, avoid mid-block decl

Modified Paths:
--------------
    trunk/Build/source/texk/xdvik/dvi-init.c

Modified: trunk/Build/source/texk/xdvik/dvi-init.c
===================================================================
--- trunk/Build/source/texk/xdvik/dvi-init.c	2022-01-31 23:14:24 UTC (rev 61829)
+++ trunk/Build/source/texk/xdvik/dvi-init.c	2022-01-31 23:19:46 UTC (rev 61830)
@@ -1242,8 +1242,7 @@
     /*      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;



More information about the tex-live-commits mailing list.