> -      if (value && (strncasecmp(value, "deflate", strlen("deflate"))
> == 0)) {
> +      if (strncasecmp(value, "deflate", sizeof("deflate") - 1) == 0)

This should be unnecessary, as it is already handled by the compiler
(but of course it does no harm, and lends clarity in the code that we
care about performance ;)

i

-- 
Igor Galić

Tel: +43 (0) 664 886 22 883
Mail: [email protected]
URL: http://brainsware.org/
GPG: 6880 4155 74BD FD7C B515  2EA5 4B1D 9E08 A097 C9AE

Reply via email to