diff options
author | randomdan <randomdan@localhost> | 2013-08-31 00:41:55 +0000 |
---|---|---|
committer | randomdan <randomdan@localhost> | 2013-08-31 00:41:55 +0000 |
commit | 530f9710a04887fead2e9e27669a05c8d432a4bc (patch) | |
tree | c358cac044d81d307c31a4905ad1588f2177bc41 | |
parent | GCC 4.6 compat fix with nothrow default destructors (diff) | |
download | project2-530f9710a04887fead2e9e27669a05c8d432a4bc.tar.bz2 project2-530f9710a04887fead2e9e27669a05c8d432a4bc.tar.xz project2-530f9710a04887fead2e9e27669a05c8d432a4bc.zip |
Add missing early return on XML parse error
-rw-r--r-- | project2/xml/xmlDocumentCache.cpp | 1 |
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 |