Re: [evolution-patches] [Evolution-hackers] Avoiding a strdup in camel-folder-summar.c
- From: Chris Toshok <toshok ximian com>
- To: rkhadgar redhat com
- Cc: Evolution Patches <evolution-patches gnome org>, evolution-hackers gnome org, Philip Van Hoof <spam pvanhoof be>
- Subject: Re: [evolution-patches] [Evolution-hackers] Avoiding a strdup in camel-folder-summar.c
- Date: Tue, 11 Jul 2006 17:06:18 -0400
On Wed, 2006-07-12 at 02:28 +0530, Ritesh Khadgaray wrote:
>
> out of curiosity, the first patch reads through the list
> and this patch, return if any one of the token is equal, anf not any
> following it.
>
> Would the below not be better ?
>
> for (i = 0; i < tokens_len; i ++)
> if (tokens[i] != token)
> break;
That will free the token in the list.
Chris
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]