Good catch but it's not needed.
EINA_INLIST_FOREACH_SAFE assign the proper value or NULL to itc anyway.
Did you have any problem with that?

Daniel Juyung Seo (SeoZ)

On Tue, Oct 2, 2012 at 9:53 PM, Enlightenment SVN
<[email protected]> wrote:
> Log:
> elementary/genlist: Init itc to NULL before using it.
>
> Author:       stefan
> Date:         2012-10-02 05:53:58 -0700 (Tue, 02 Oct 2012)
> New Revision: 77320
> Trac:         http://trac.enlightenment.org/e/changeset/77320
>
> Modified:
>   trunk/elementary/src/lib/elm_genlist.c
>
> Modified: trunk/elementary/src/lib/elm_genlist.c
> ===================================================================
> --- trunk/elementary/src/lib/elm_genlist.c      2012-10-02 12:53:54 UTC (rev 
> 77319)
> +++ trunk/elementary/src/lib/elm_genlist.c      2012-10-02 12:53:58 UTC (rev 
> 77320)
> @@ -1138,7 +1138,7 @@
>  static Item_Cache *
>  _item_cache_find(Elm_Gen_Item *it)
>  {
> -   Item_Cache *itc;
> +   Item_Cache *itc = NULL;
>     Eina_Inlist *l;
>     Eina_Bool tree = 0;
>
>
>
> ------------------------------------------------------------------------------
> Don't let slow site performance ruin your business. Deploy New Relic APM
> Deploy New Relic app performance management and know exactly
> what is happening inside your Ruby, Python, PHP, Java, and .NET app
> Try New Relic at no cost today and get our sweet Data Nerd shirt too!
> http://p.sf.net/sfu/newrelic-dev2dev
> _______________________________________________
> enlightenment-svn mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/enlightenment-svn

------------------------------------------------------------------------------
Don't let slow site performance ruin your business. Deploy New Relic APM
Deploy New Relic app performance management and know exactly
what is happening inside your Ruby, Python, PHP, Java, and .NET app
Try New Relic at no cost today and get our sweet Data Nerd shirt too!
http://p.sf.net/sfu/newrelic-dev2dev
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to