diff options
author | Tom Hacohen <tom@stosb.com> | 2016-03-02 10:30:06 +0000 |
---|---|---|
committer | Tom Hacohen <tom@stosb.com> | 2016-03-02 10:30:06 +0000 |
commit | be78163e71ef84d292b5e4e7dcf24d6affc21e10 (patch) | |
tree | 03f88f909e0ef566ee198455ff1af17aee3dcbe1 | |
parent | b6693f54db230e1f2b84670e7d5d27b94be4d111 (diff) | |
download | efl-be78163e71ef84d292b5e4e7dcf24d6affc21e10.tar.gz |
Fix eo super with NULL class.
-rw-r--r-- | src/lib/eo/eo.c | 4 |
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; } |