1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-03-24 06:50:08 +03:00

Don't mix declarations and code in runtest.c

This commit is contained in:
Nick Wellnhofer 2022-04-13 16:51:49 +02:00
parent 776b00284d
commit 7204dbb0ad

View File

@ -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);