tasn pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=7ed7d7da8b8f7f969af806541a22be11e7b8477b

commit 7ed7d7da8b8f7f969af806541a22be11e7b8477b
Author: Tom Hacohen <[email protected]>
Date:   Fri Sep 27 16:50:34 2013 +0100

    Eo: class_get on a class should not return itself.
    
    This is there until we create a Class class of which all classes are
    instances.
---
 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 44461d2..16a1d0f 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -457,7 +457,7 @@ eo_class_get(const Eo *obj_id)
    if (_eo_is_a_class(obj_id))
      {
         EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL);
-        return obj_id;
+        return NULL;
      }
 
    EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, NULL);

-- 


Reply via email to