summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Hacohen <tom@stosb.com>2016-03-02 10:30:06 +0000
committerTom Hacohen <tom@stosb.com>2016-03-02 10:30:06 +0000
commitbe78163e71ef84d292b5e4e7dcf24d6affc21e10 (patch)
tree03f88f909e0ef566ee198455ff1af17aee3dcbe1
parentb6693f54db230e1f2b84670e7d5d27b94be4d111 (diff)
downloadefl-be78163e71ef84d292b5e4e7dcf24d6affc21e10.tar.gz
Fix eo super with NULL class.
-rw-r--r--src/lib/eo/eo.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c
index d348b8aa70..6eea649823 100644
--- a/src/lib/eo/eo.c
+++ b/src/lib/eo/eo.c
@@ -256,6 +256,10 @@ EAPI Eo *
_eo_super(Eo *obj, const Eo_Class *cur_klass)
{
_current_super_class = cur_klass;
+ /* FIXME-tom: Hack to fail when passing NULL super. */
+ if (!cur_klass)
+ return NULL;
+
return obj;
}