Changeset 1859


Ignore:
Timestamp:
23/09/2007 19:51:52 (4 years ago)
Author:
chris
Message:

Compile fix.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • box/trunk/lib/common/ExcludeList.cpp

    r1771 r1859  
    195195 
    196196                                // Compile 
    197                                 if(::regcomp(pregex, entry.c_str(),  
    198                                         REG_EXTENDED | REG_NOSUB) != 0) 
     197                                int errcode = ::regcomp(pregex, entry.c_str(),  
     198                                        REG_EXTENDED | REG_NOSUB); 
     199 
     200                                if (errcode != 0) 
    199201                                { 
     202                                        char buf[1024]; 
     203                                        regerror(errcode, pregex, buf, sizeof(buf)); 
     204                                        BOX_ERROR("Invalid regular expression: " << 
     205                                                entry << ": " << buf); 
    200206                                        THROW_EXCEPTION(CommonException, BadRegularExpression) 
    201207                                } 
Note: See TracChangeset for help on using the changeset viewer.