elementary genlist: fix potential uninitialized variable.
authorVincent Torri <vincent.torri@gmail.com>
Fri, 10 May 2019 14:01:59 +0000 (10:01 -0400)
committerJunsuChoi <jsuya.choi@samsung.com>
Thu, 30 May 2019 08:17:50 +0000 (17:17 +0900)
Test Plan: compilation

Reviewers: raster, zmike

Reviewed By: zmike

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

src/lib/elementary/elm_genlist.c

index d835a00..a51cfdf 100644 (file)
@@ -7191,7 +7191,7 @@ _elm_genlist_item_sorted_insert(Eo *obj, Elm_Genlist_Data *sd, const Elm_Genlist
           {
              // Inlist is not sorted!
              Elm_Gen_Item *prev_rel = NULL;
-             int cmp;
+             int cmp = 0;
 
              EINA_INLIST_FOREACH(sd->items, rel)
                {