mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
- Reset some variables when closing just in case the XML tre is re-used.
modified: storage/connect/libdoc.cpp
This commit is contained in:
@@ -540,6 +540,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
|
|||||||
if ((Xerr = xmlGetLastError()))
|
if ((Xerr = xmlGetLastError()))
|
||||||
xmlResetError(Xerr);
|
xmlResetError(Xerr);
|
||||||
|
|
||||||
|
Nlist = NULL;
|
||||||
} // endif Nlist
|
} // endif Nlist
|
||||||
|
|
||||||
if (Xop) {
|
if (Xop) {
|
||||||
@@ -548,6 +549,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
|
|||||||
if ((Xerr = xmlGetLastError()))
|
if ((Xerr = xmlGetLastError()))
|
||||||
xmlResetError(Xerr);
|
xmlResetError(Xerr);
|
||||||
|
|
||||||
|
Xop = NULL;
|
||||||
} // endif Xop
|
} // endif Xop
|
||||||
|
|
||||||
if (NlXop) {
|
if (NlXop) {
|
||||||
@@ -556,6 +558,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
|
|||||||
if ((Xerr = xmlGetLastError()))
|
if ((Xerr = xmlGetLastError()))
|
||||||
xmlResetError(Xerr);
|
xmlResetError(Xerr);
|
||||||
|
|
||||||
|
NlXop = NULL;
|
||||||
} // endif NlXop
|
} // endif NlXop
|
||||||
|
|
||||||
if (Ctxp) {
|
if (Ctxp) {
|
||||||
@@ -564,6 +567,7 @@ void LIBXMLDOC::CloseDoc(PGLOBAL g, PFBLOCK xp)
|
|||||||
if ((Xerr = xmlGetLastError()))
|
if ((Xerr = xmlGetLastError()))
|
||||||
xmlResetError(Xerr);
|
xmlResetError(Xerr);
|
||||||
|
|
||||||
|
Ctxp = NULL;
|
||||||
} // endif Ctxp
|
} // endif Ctxp
|
||||||
|
|
||||||
// } // endif Count
|
// } // endif Count
|
||||||
|
Reference in New Issue
Block a user