summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrandomdan <randomdan@localhost>2013-08-31 00:41:55 +0000
committerrandomdan <randomdan@localhost>2013-08-31 00:41:55 +0000
commit0bccdb82de4b2f4c9772a53605aaf8e3def2899c (patch)
treec358cac044d81d307c31a4905ad1588f2177bc41
parentGCC 4.6 compat fix with nothrow default destructors (diff)
downloadproject2-0bccdb82de4b2f4c9772a53605aaf8e3def2899c.tar.bz2
project2-0bccdb82de4b2f4c9772a53605aaf8e3def2899c.tar.xz
project2-0bccdb82de4b2f4c9772a53605aaf8e3def2899c.zip
Add missing early return on XML parse error
-rw-r--r--project2/xml/xmlDocumentCache.cpp1
1 files changed, 1 insertions, 0 deletions
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<XmlParseError>, std::string(xmlGetLastError()->message))));
+ return;
}
// Dirty hack alert