diff options
author | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-11-21 19:33:12 +0900 |
---|---|---|
committer | Carsten Haitzler (Rasterman) <raster@rasterman.com> | 2017-12-15 14:16:53 +0900 |
commit | c4e96e4e8388c6e20e06f2723309f573b914c0b1 (patch) | |
tree | 05b8e0efbf8572329cfd7ada8048e99676c279e4 | |
parent | 5dd52fd09b7d79c70b3134423a87aa6400a2d994 (diff) |
eo - fi missed error condition if eoid passed in is NULL
in some cases construction can fail badly and this causes a crash...
eoid is NULL going in and this causes a cascade of failure. survive
and be more robust.
-rw-r--r-- | src/lib/eo/eo.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/eo/eo.c b/src/lib/eo/eo.c index 0d443ef625..d944f40759 100644 --- a/src/lib/eo/eo.c +++ b/src/lib/eo/eo.c | |||
@@ -1023,6 +1023,7 @@ cleanup: | |||
1023 | EAPI Eo * | 1023 | EAPI Eo * |
1024 | _efl_add_end(Eo *eo_id, Eina_Bool is_ref, Eina_Bool is_fallback) | 1024 | _efl_add_end(Eo *eo_id, Eina_Bool is_ref, Eina_Bool is_fallback) |
1025 | { | 1025 | { |
1026 | if (!eo_id) return NULL; | ||
1026 | Eo *ret = efl_finalize(eo_id); | 1027 | Eo *ret = efl_finalize(eo_id); |
1027 | ret = _efl_add_internal_end(eo_id, ret); | 1028 | ret = _efl_add_internal_end(eo_id, ret); |
1028 | 1029 | ||