um.. If the st is NULL, then st->l in EINA_LIST_FOREACH occurs
segmentation fault..
so.. checking NULL without return statement.. is meaningless..
ok.. then I will send a patch again.

Thanks for your response.

2012/5/17 Kim Shinwoo <kimcinoo....@gmail.com>:
> Actually, only st->l would be NULL not st.
>
> So,
>
>  +   if (!st->l) return EINA_FALSE;
>
> is enough to me.
>
> Even though I'm not sure when the st is NULL, I cannot guarantee the
> st is always not NULL
>
>
>
> 2012/5/17 ChunEon Park <her...@naver.com>:
>> I wonder why st is NULL.
>>
>>
>> I think we need to prevent to not go that function in advance, if the st was 
>> invalid.
>>
>>
>> ------------------------------------
>> -Regards, Hermet-
>>
>>
>> -----Original Message-----
>> From: "Hyoyoung Chang"&lt;hyoyo...@gmail.com&gt;
>> To: &lt;enlightenment-devel@lists.sourceforge.net&gt;;
>> Cc:
>> Sent: 2012-05-17 (목) 13:44:26
>> Subject: Re: [E-devel] E SVN: hyoyoung trunk/elementary/src/lib
>>
>> Thanks, in svn - r71187
>>
>> On Thu, May 17, 2012 at 1:39 PM, Enlightenment SVN
>> &lt;no-reply&gt;@enlightenment.org&gt; wrote:
>> &gt; Log:
>> &gt; elementary/gesture_layer: add to null check at _tap_gesture_check_finish
>> &gt;
>> &gt;  Signed-off-by: Kim Shinwoo &lt;kimcinoo.efl&gt;@gmail.com&gt;
>> &gt;
>> &gt;
>> &gt; Author:       hyoyoung
>> &gt; Date:         2012-05-16 21:39:40 -0700 (Wed, 16 May 2012)
>> &gt; New Revision: 71187
>> &gt; Trac:         http://trac.enlightenment.org/e/changeset/71187
>> &gt;
>> &gt; Modified:
>> &gt;  trunk/elementary/src/lib/elm_gesture_layer.c
>> &gt;
>> &gt; Modified: trunk/elementary/src/lib/elm_gesture_layer.c
>> &gt; ===================================================================
>> &gt; --- trunk/elementary/src/lib/elm_gesture_layer.c        2012-05-17 
>> 04:05:26 UTC (rev 71186)
>> &gt; +++ trunk/elementary/src/lib/elm_gesture_layer.c        2012-05-17 
>> 04:39:40 UTC (rev 71187)
>> &gt; @@ -1185,6 +1185,7 @@
>> &gt;    Taps_Type *st = gesture-&gt;data;
>> &gt;    Eina_List *l;
>> &gt;    Eina_List *pe_list;
>> &gt; +   if (!st || !st-&gt;l) return EINA_FALSE;
>> &gt;    EINA_LIST_FOREACH(st-&gt;l, l, pe_list)
>> &gt;      {
>> &gt;         if (eina_list_count(pe_list) != st-&gt;n_taps_needed)
>> &gt;
>> &gt;
>> &gt; 
>> ------------------------------------------------------------------------------
>> &gt; Live Security Virtual Conference
>> &gt; Exclusive live event will cover all the ways today's security and
>> &gt; threat landscape has changed and how IT managers can respond. 
>> Discussions
>> &gt; will include endpoint security, mobile security and the latest in 
>> malware
>> &gt; threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> &gt; _______________________________________________
>> &gt; enlightenment-svn mailing list
>> &gt; enlightenment-...@lists.sourceforge.net
>> &gt; https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel
>>
>>
>> ------------------------------------------------------------------------------
>> Live Security Virtual Conference
>> Exclusive live event will cover all the ways today's security and
>> threat landscape has changed and how IT managers can respond. Discussions
>> will include endpoint security, mobile security and the latest in malware
>> threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
>> _______________________________________________
>> enlightenment-devel mailing list
>> enlightenment-devel@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
enlightenment-devel mailing list
enlightenment-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to