Boost logo

Boost-Commit :

From: daniel_james_at_[hidden]
Date: 2008-07-24 06:15:13


Author: danieljames
Date: 2008-07-24 06:15:12 EDT (Thu, 24 Jul 2008)
New Revision: 47751
URL: http://svn.boost.org/trac/boost/changeset/47751

Log:
Better inspect errors for empty URLs.
Text files modified:
   trunk/tools/inspect/link_check.cpp | 6 ++++++
   1 files changed, 6 insertions(+), 0 deletions(-)

Modified: trunk/tools/inspect/link_check.cpp
==============================================================================
--- trunk/tools/inspect/link_check.cpp (original)
+++ trunk/tools/inspect/link_check.cpp 2008-07-24 06:15:12 EDT (Thu, 24 Jul 2008)
@@ -127,6 +127,12 @@
       const path & source_path, bool no_link_errors )
         // precondition: source_path.is_complete()
     {
+ if(url.empty()) {
+ ++m_invalid_errors;
+ error( library_name, source_path, string(name()) + " empty URL." );
+ return;
+ }
+
       boost::smatch m;
       if(!boost::regex_match(url, m, url_decompose_regex)) {
         if(!no_link_errors) {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk