test/suite_helpers : Fix warnings about use to uninitialized value.
authorJunsuChoi <jsuya.choi@samsung.com>
Wed, 26 Feb 2020 07:34:44 +0000 (16:34 +0900)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 3 Mar 2020 21:15:12 +0000 (06:15 +0900)
Summary:
remove warnings.
../src/tests/elementary/suite_helpers.c:779:86: warning: ?idy2? may be used uninitialized in this function [-Wmaybe-uninitialized].
...

Test Plan: N/A

Reviewers: YOhoho, Hermet, Jaehyun_Cho

Reviewed By: Hermet

Subscribers: cedric, #reviewers, #committers

Tags: #efl

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

src/tests/elementary/suite_helpers.c

index 1d5e185..3deb5ff 100644 (file)
@@ -760,6 +760,7 @@ pinch_object(Eo *obj, int x, int y, int x2, int y2, int dx, int dy, int dx2, int
 {
    Evas *e = evas_object_evas_get(obj);
    int i, idx, idy, idx2, idy2;
+   idx = idy = idx2 = idy2 = 0;
    evas_event_feed_multi_down(e, 0, x, y, 1, 1, 1, 1, 0, x, y, 0, ts, NULL);
    evas_event_feed_multi_down(e, 1, x2, y2, 1, 1, 1, 1, 0, x2, y2, 0, ts++, NULL);
    for (i = 1; i < abs(dx); i++)