elm: Avoid maybe unitialized variable accesses
authorLauro Moura <lauromoura@expertisesolutions.com.br>
Wed, 25 Sep 2019 20:15:43 +0000 (16:15 -0400)
committerJongmin Lee <jm105.lee@samsung.com>
Wed, 25 Sep 2019 21:12:44 +0000 (06:12 +0900)
Reviewers: cedric, bu5hm4n, zmike, felipealmeida

Reviewed By: zmike

Subscribers: #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D10170

src/lib/elementary/efl_ui_collection_view.c
src/lib/elementary/efl_ui_layout.c

index aa3b9c5..a13e69e 100644 (file)
@@ -494,7 +494,7 @@ _entity_fetched_cb(Eo *obj, void *data, const Eina_Value v)
    Efl_Ui_Collection_Request *request = data;
    Efl_Gfx_Entity *child;
    unsigned int i, len;
-   uint64_t updated_size_start_id, updated_entity_start_id;
+   uint64_t updated_size_start_id = 0, updated_entity_start_id = 0;
    Eina_Bool updated_size = EINA_FALSE, updated_entity = EINA_FALSE;
 
    EINA_VALUE_ARRAY_FOREACH(&v, len, i, child)
index 53a6aaa..59b5757 100644 (file)
@@ -602,7 +602,7 @@ EOLIAN static Eina_Error
 _efl_ui_layout_base_efl_ui_widget_theme_apply(Eo *obj, Efl_Ui_Layout_Data *sd)
 {
    Eina_Error theme_apply_ret, theme_apply_internal_ret;
-   Elm_Widget_Smart_Data *wd;
+   Elm_Widget_Smart_Data *wd = NULL;
    char buf[64];
    static unsigned int version = 0;