1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-02-20 13:57:22 +03:00

Avoid an extra operation

In the catalog code, tsan also complained of testing
the variable without locking and that was done a few lines below
This commit is contained in:
Daniel Veillard 2012-05-21 10:14:34 +08:00
parent d495e6a845
commit 59df1e4f92

View File

@ -1407,8 +1407,6 @@ xmlFetchXMLCatalogFile(xmlCatalogEntryPtr catal) {
return(-1);
if (catal->URL == NULL)
return(-1);
if (catal->children != NULL)
return(-1);
/*
* lock the whole catalog for modification