raster pushed a commit to branch master. http://git.enlightenment.org/core/enlightenment.git/commit/?id=01f710335aeb43060114d22a010ab19e59d3a9ed
commit 01f710335aeb43060114d22a010ab19e59d3a9ed Author: Carsten Haitzler (Rasterman) <[email protected]> Date: Thu May 7 17:33:08 2020 +0100 e order - do null check for path and return before alloc of obj fix coverity CID 1428757 --- src/bin/e_order.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/bin/e_order.c b/src/bin/e_order.c index 57b95dfa9..44ee8b985 100644 --- a/src/bin/e_order.c +++ b/src/bin/e_order.c @@ -62,13 +62,15 @@ e_order_new(const char *path) { E_Order *eo; - eo = E_OBJECT_ALLOC(E_Order, E_ORDER_TYPE, _e_order_free); - if (!eo) return NULL; - if (!path) { ERR("null order"); + return NULL; } + + eo = E_OBJECT_ALLOC(E_Order, E_ORDER_TYPE, _e_order_free); + if (!eo) return NULL; + if (path[0] != '/') { ERR("not full"); --
