Re: [evolution-patches] [evolution-data-server] Fix for bug #331633



On Sat, 2006-02-18 at 04:48 +0000, Irene Huang  wrote:
> +       if (strlen(dn_value->str))
> +               dn = g_strndup (dn_value->str, strlen(dn_value->str) -
> 1);

Wouldn't it be better to store strlen() in a variable, instead of
calling strlen twice?

Thanks,

V. Varadhan



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