Re: [Evolution-hackers] Avoiding a strdup in camel-folder-summar.c

Chris Toshok <[email protected]>
Newsgroups gmane.comp.gnome.evolution.patches,gmane.comp.gnome.evolution.devel
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.