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:
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
2
parser.c
2
parser.c
@@ -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));
|
||||||
}
|
}
|
||||||
|
|||||||
1
xmlIO.c
1
xmlIO.c
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user