wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | Fix robots.txt parser (!510)


From: @rockdaboot
Subject: Re: wget2 | Fix robots.txt parser (!510)
Date: Fri, 19 Aug 2022 18:50:19 +0000



Tim Rühsen started a new discussion on libwget/robots.c: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/510#note_1070984716

>       xfree(p);
>  }
>  
> +static bool parse_record_field(const char **data, const char *field)
> +{
> +     for (; isblank(**data); (*data)++);
> +
> +     if (wget_strncasecmp_ascii(*data, field, strlen(field)))

Can we avoid strlen in this function as we already know the length of 'field' 
in advance ?

-- 
Reply to this email directly or view it on GitLab: 
https://gitlab.com/gnuwget/wget2/-/merge_requests/510#note_1070984716
You're receiving this email because of your account on gitlab.com.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]