diff --git a/testapi.c b/testapi.c index c7a5b163..db968cd9 100644 --- a/testapi.c +++ b/testapi.c @@ -142,6 +142,7 @@ int main(int argc, char **argv) { LIBXML_TEST_VERSION xmlSetStructuredErrorFunc(NULL, structured_errors); + xmlSetExternalEntityLoader(xmlNoNetExternalEntityLoader); if (argc >= 2) { if (!strcmp(argv[1], "-q")) {