eina: always initialize i.
authorCedric BAIL <cedric.bail@free.fr>
Tue, 26 Mar 2019 16:05:02 +0000 (12:05 -0400)
committerYeongjong Lee <yj34.lee@samsung.com>
Tue, 2 Apr 2019 03:45:17 +0000 (12:45 +0900)
Reviewers: zmike, bu5hm4n, stefan_schmidt, devilhorns

Reviewed By: devilhorns

Subscribers: #reviewers, #committers

Tags: #efl

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

src/lib/eina/eina_promise.c

index f2dc9cc..62a4757 100644 (file)
@@ -1205,7 +1205,7 @@ _race_then_cb(void *data, const Eina_Value v,
    Eina_Promise *p = ctx->base.promise;
    Eina_Bool found, r;
    Eina_Value result;
-   unsigned int i;
+   unsigned int i = 0;
 
    //This is not allowed!
    assert(v.type != &EINA_VALUE_TYPE_PROMISE);