Re: [evolution-patches] Avoiding a strdup in camel-folder-summar.c
Ritesh Khadgaray <[email protected]>
| Newsgroups | gmane.comp.gnome.evolution.patches,gmane.comp.gnome.evolution.devel |
|---|---|
| Message-ID | <1152656125.3797.23.camel__37349.4015228518$1152717453$gmane$org@rkhadgar.pnq.redhat.com> |
On Tue, 2006-07-11 at 17:06 -0400, Chris Toshok wrote: > 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. > Oops. Einstein moment. Thanks :) -- Ritesh Khadgaray LinuX N Stuff Ph: +919822394463 Eat Right, Exercise, Die Anyway.