mirror of
https://gitlab.gnome.org/GNOME/libxml2.git
synced 2024-12-23 17:33:50 +03:00
testapi.c: Initialize catalog early
Avoid leak reports when testing --with-mem-debug.
This commit is contained in:
parent
eaebf37fb6
commit
25ea7b6aa0
@ -17,6 +17,7 @@
|
||||
#include <stdlib.h> /* for putenv() */
|
||||
#include <string.h>
|
||||
#include <libxml/xmlerror.h>
|
||||
#include <libxml/catalog.h>
|
||||
#include <libxml/relaxng.h>
|
||||
|
||||
|
||||
@ -143,6 +144,9 @@ int main(int argc, char **argv) {
|
||||
memset(longtab, 0, sizeof(longtab));
|
||||
|
||||
xmlInitParser();
|
||||
#ifdef LIBXML_CATALOG_ENABLED
|
||||
xmlInitializeCatalog();
|
||||
#endif
|
||||
#ifdef LIBXML_SCHEMAS_ENABLED
|
||||
xmlRelaxNGInitTypes();
|
||||
#endif
|
||||
@ -178,7 +182,6 @@ int main(int argc, char **argv) {
|
||||
|
||||
#include <libxml/HTMLparser.h>
|
||||
#include <libxml/HTMLtree.h>
|
||||
#include <libxml/catalog.h>
|
||||
#include <libxml/chvalid.h>
|
||||
#include <libxml/dict.h>
|
||||
#include <libxml/encoding.h>
|
||||
|
Loading…
Reference in New Issue
Block a user