1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-10-24 13:33:01 +03:00

io: Don't set close callback in xmlParserInputBufferCreateFd

This commit is contained in:
Nick Wellnhofer
2024-05-05 17:26:31 +02:00
parent 422ae4623a
commit a4c2b7233f
3 changed files with 0 additions and 5 deletions

View File

@@ -6488,7 +6488,6 @@ htmlReadFd(int fd, const char *url, const char *encoding, int options)
htmlCtxtUseOptions(ctxt, options); htmlCtxtUseOptions(ctxt, options);
input = xmlNewInputFd(ctxt, url, fd, encoding, 0); input = xmlNewInputFd(ctxt, url, fd, encoding, 0);
input->buf->closecallback = NULL;
doc = htmlCtxtParseDocument(ctxt, input); doc = htmlCtxtParseDocument(ctxt, input);
@@ -6660,7 +6659,6 @@ htmlCtxtReadFd(htmlParserCtxtPtr ctxt, int fd,
htmlCtxtUseOptions(ctxt, options); htmlCtxtUseOptions(ctxt, options);
input = xmlNewInputFd(ctxt, URL, fd, encoding, 0); input = xmlNewInputFd(ctxt, URL, fd, encoding, 0);
input->buf->closecallback = NULL;
return(htmlCtxtParseDocument(ctxt, input)); return(htmlCtxtParseDocument(ctxt, input));
} }

View File

@@ -13872,7 +13872,6 @@ xmlReadFd(int fd, const char *URL, const char *encoding, int options)
xmlCtxtUseOptions(ctxt, options); xmlCtxtUseOptions(ctxt, options);
input = xmlNewInputFd(ctxt, URL, fd, encoding, 0); input = xmlNewInputFd(ctxt, URL, fd, encoding, 0);
input->buf->closecallback = NULL;
doc = xmlCtxtParseDocument(ctxt, input); doc = xmlCtxtParseDocument(ctxt, input);
@@ -14053,7 +14052,6 @@ xmlCtxtReadFd(xmlParserCtxtPtr ctxt, int fd,
xmlCtxtUseOptions(ctxt, options); xmlCtxtUseOptions(ctxt, options);
input = xmlNewInputFd(ctxt, URL, fd, encoding, 0); input = xmlNewInputFd(ctxt, URL, fd, encoding, 0);
input->buf->closecallback = NULL;
return(xmlCtxtParseDocument(ctxt, input)); return(xmlCtxtParseDocument(ctxt, input));
} }

View File

@@ -1902,7 +1902,6 @@ xmlParserInputBufferCreateFd(int fd, xmlCharEncoding enc) {
if (ret != NULL) { if (ret != NULL) {
ret->context = (void *) (ptrdiff_t) fd; ret->context = (void *) (ptrdiff_t) fd;
ret->readcallback = xmlFdRead; ret->readcallback = xmlFdRead;
ret->closecallback = xmlFdClose;
} }
return(ret); return(ret);