[libxml2/2.9] Don't mix declarations and code in runtest.c
- From: Nick Wellnhofer <nwellnhof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libxml2/2.9] Don't mix declarations and code in runtest.c
- Date: Wed, 20 Apr 2022 17:13:27 +0000 (UTC)
commit 73e183582cde59c7d0b1643650ce1fea4a96dfb5
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 62b362d4..61e41200 100644
--- a/runtest.c
+++ b/runtest.c
@@ -2147,10 +2147,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]