According to Geoff Hutchison:
> This is bad. The last line should be:
> Pattern: /cat/|/foobar/
> 
> In light of a recent bug report (about a new 'allow' keyword in 
> robots.txt) the code probably needs to be rewritten. Nevertheless, 
> here's the key code:
> 
>           if (*rest)
>           {
>               if (pattern.length())
>                   pattern << '|' << rest;
>               else
>                   pattern = rest;
>           }
> 
> The only thing I can think of here is that "pattern = rest;" is not 
> performing the copying that it should...

Is it a problem that htlib/htString.h defines

    void                operator = (const char *s);

but not

    void                operator = (char *s);

given that rest is char * and not const char *?  What will (String) = (char *)
default to?

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

------------------------------------
To unsubscribe from the htdig3-dev mailing list, send a message to
[EMAIL PROTECTED] 
You will receive a message to confirm this. 

Reply via email to