[libxml2] Don't mix declarations and code in runtest.c



commit 7204dbb0add72ae97d5ddcc93ed3f3a54a8bd3fd
Author: Nick Wellnhofer <wellnhofer aevum de>
Date:   Wed Apr 13 16:51:49 2022 +0200

    Don't mix declarations and code in runtest.c

 runtest.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/runtest.c b/runtest.c
index 31bb5c6c..ee837caa 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2153,10 +2153,10 @@ fdParseTest(const char *filename, const char *result, const char *err,
              int options) {
     xmlDocPtr doc;
     const char *base = NULL;
-    int size, res = 0;
+    int size, res = 0, fd;
 
     nb_tests++;
-    int fd = open(filename, RD_FLAGS);
+    fd = open(filename, RD_FLAGS);
 #ifdef LIBXML_HTML_ENABLED
     if (options & XML_PARSE_HTML) {
         doc = htmlReadFd(fd, filename, NULL, options);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]