Enlightenment CVS committal

Author  : rbdpngn
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_callback.h 


Log Message:
Catch a potential segv on the callback list.

===================================================================
RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_callback.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -3 -r1.5 -r1.6
--- ewl_callback.h      4 Nov 2005 04:34:48 -0000       1.5
+++ ewl_callback.h      16 Nov 2005 17:13:04 -0000      1.6
@@ -76,7 +76,7 @@
  * Retrives the callback struct at the given position
  */
 #define EWL_CALLBACK_GET(w, t, i) \
-       ((w->callbacks[t].mask & EWL_CALLBACK_TYPE_DIRECT) ? 
w->callbacks[t].list : w->callbacks[t].list[i])
+       ((w->callbacks[t].mask & EWL_CALLBACK_TYPE_DIRECT) ? 
w->callbacks[t].list : (w->callbacks[t].list ? w->callbacks[t].list[i] : NULL))
 
 /**
  * @def EWL_CALLBACK_FLAG_INTERCEPT(w, t)




-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to