mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2025-07-29 11:41:22 +03:00
Bugfix - parser.c xmlIO.c xmlIO.h: fixed bug 26650, and improved the
Bugfix - parser.c xmlIO.c xmlIO.h: fixed bug 26650, and improved the global init function. Daniel
This commit is contained in:
8
xmlIO.c
8
xmlIO.c
@ -644,6 +644,9 @@ xmlRegisterOutputCallbacks(xmlOutputMatchCallback match,
|
||||
*/
|
||||
void
|
||||
xmlRegisterDefaultInputCallbacks(void) {
|
||||
if (xmlInputCallbackInitialized)
|
||||
return;
|
||||
|
||||
xmlRegisterInputCallbacks(xmlFileMatch, xmlFileOpen,
|
||||
xmlFileRead, xmlFileClose);
|
||||
#ifdef HAVE_ZLIB_H
|
||||
@ -660,6 +663,7 @@ xmlRegisterDefaultInputCallbacks(void) {
|
||||
xmlRegisterInputCallbacks(xmlIOFTPMatch, xmlIOFTPOpen,
|
||||
xmlIOFTPRead, xmlIOFTPClose);
|
||||
#endif /* LIBXML_FTP_ENABLED */
|
||||
xmlInputCallbackInitialized = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
@ -669,6 +673,9 @@ xmlRegisterDefaultInputCallbacks(void) {
|
||||
*/
|
||||
void
|
||||
xmlRegisterDefaultOutputCallbacks(void) {
|
||||
if (xmlOutputCallbackInitialized)
|
||||
return;
|
||||
|
||||
xmlRegisterOutputCallbacks(xmlFileMatch, xmlFileOpenW,
|
||||
xmlFileWrite, xmlFileClose);
|
||||
/*********************************
|
||||
@ -693,6 +700,7 @@ xmlRegisterDefaultOutputCallbacks(void) {
|
||||
xmlIOFTPWrite, xmlIOFTPClose);
|
||||
#endif
|
||||
**********************************/
|
||||
xmlOutputCallbackInitialized = 1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user