Changeset 523 for trunk/lib/utility.cc


Ignore:
Timestamp:
Dec 25, 2007, 2:51:54 AM (15 years ago)
Author:
Peter Johansson
Message:

fixes ticket:284 - validate [file-name-dictionary] section in config file

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/utility.cc

    r519 r523  
    102102        equal(first1+1, end1, first2+1, end2) )
    103103      return true;
    104     if (first1!=end1 && *first1=='*' && first2!=end2 &&
    105         equal(first1, end1, first2+1, end2) )
     104    if ( (first1!=end1 && first2!=end2 && (*first1=='*'|| *first2=='*') ) &&
     105         (equal(first1+1, end1, first2, end2) ||
     106          equal(first1, end1, first2+1, end2))
     107         )
    106108      return true;
    107     if (first2!=end2 && *first2=='*' && first1!=end1 &&
    108         equal(first1+1, end1, first2, end2) )
    109       return true;
    110        
    111109    return false;
    112110  }
Note: See TracChangeset for help on using the changeset viewer.