From: Carsten Haitzler (Rasterman) Date: Sun, 24 Jul 2016 09:24:01 +0000 (+0900) Subject: efl ui video - fix coverity CID 1356997 X-Git-Tag: upstream/1.20.0~5079 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8b20d8dd0d62d6e22f8b040f7ac2b0442b8e345a;p=platform%2Fupstream%2Fefl.git efl ui video - fix coverity CID 1356997 really minor lack of check if emotion init succeeds. check and complain if it fails. @fix --- diff --git a/src/lib/elementary/efl_ui_video.c b/src/lib/elementary/efl_ui_video.c index 2f1965b..50bb003 100644 --- a/src/lib/elementary/efl_ui_video.c +++ b/src/lib/elementary/efl_ui_video.c @@ -245,7 +245,8 @@ _efl_ui_video_efl_canvas_group_group_add(Eo *obj, Efl_Ui_Video_Data *priv) elm_widget_can_focus_set(obj, EINA_TRUE); priv->emotion = emotion_object_add(evas_object_evas_get(obj)); - emotion_object_init(priv->emotion, NULL); + if (!emotion_object_init(priv->emotion, NULL)) + CRI("Failed to init emotion object"); if (!elm_layout_theme_set(obj, "video", "base", elm_widget_style_get(obj))) CRI("Failed to set layout!");