jpeg pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=188ffd412ce3ea184b220956d460a3e2a949cb6b

commit 188ffd412ce3ea184b220956d460a3e2a949cb6b
Author: Jean-Philippe Andre <[email protected]>
Date:   Tue Jun 10 14:24:36 2014 +0900

    Eo: Fix crash on WIN32 (wrong check for NULL)
    
    Thanks vtorri for the report
---
 src/lib/eo/eo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index ad4cd60..f2f0c6a 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -730,7 +730,7 @@ _eo_api_desc_get(const void *api_func, const _Eo_Class 
*klass, const _Eo_Class *
               * function name itself. Slow, but this should rarely happen.
               */
              for (unsigned int i = 0; i < cur_klass->desc->ops.count; i++)
-               if (op_descs[i].api_name && !strcmp(api_name, 
op_descs[i].api_name))
+               if (api_name && !strcmp(api_name, op_descs[i].api_name))
                  {
                     if (op_descs[i].api_func == NULL || op_descs[i].api_func 
== ((void (*)())-1))
                       break;

-- 


Reply via email to