From 530f9710a04887fead2e9e27669a05c8d432a4bc Mon Sep 17 00:00:00 2001 From: randomdan Date: Sat, 31 Aug 2013 00:41:55 +0000 Subject: Add missing early return on XML parse error --- project2/xml/xmlDocumentCache.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/project2/xml/xmlDocumentCache.cpp b/project2/xml/xmlDocumentCache.cpp index 3f8a81e..7b9a12d 100644 --- a/project2/xml/xmlDocumentCache.cpp +++ b/project2/xml/xmlDocumentCache.cpp @@ -51,6 +51,7 @@ class XmlDocumentCachePopulator : public CurlCompleteCallback { Logger()->messagebf(LOG_DEBUG, "Download of '%s' succeeded, but parsing failed with error '%s'", url, xmlGetLastError()->message); XmlDocumentCache::documents.insert(XmlDocumentCache::Documents::value_type(url, boost::bind(helperThrow, std::string(xmlGetLastError()->message)))); + return; } // Dirty hack alert -- cgit v1.2.3