summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2013-09-27 16:50:34 +0100
committerTom Hacohen <tom@stosb.com>2013-09-27 16:50:34 +0100
commit7ed7d7da8b8f7f969af806541a22be11e7b8477b (patch)
treeb4638b0d0e9462676165d45bee88c923bd333b96 /src
parentc1e5fb7cf81a87d5051a31a20961d9c355c2fd8f (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/lib/eo/eo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index 44461d29d8..16a1d0f1f3 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -457,7 +457,7 @@ eo_class_get(const Eo *obj_id)
457 if (_eo_is_a_class(obj_id)) 457 if (_eo_is_a_class(obj_id))
458 { 458 {
459 EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL); 459 EO_CLASS_POINTER_RETURN_VAL(obj_id, _klass, NULL);
460 return obj_id; 460 return NULL;
461 } 461 }
462 462
463 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, NULL); 463 EO_OBJ_POINTER_RETURN_VAL(obj_id, obj, NULL);