diff options
author | Christopher Michael <devilhorns@comcast.net> | 2021-10-05 10:27:45 -0400 |
---|---|---|
committer | Christopher Michael <devilhorns@comcast.net> | 2021-10-05 10:27:45 -0400 |
commit | 57a5655f889a293adb11db09a4f35378aa29a9bb (patch) | |
tree | 20dbe2a7e0d3be769cdcdda4f2c25aa62dec4cdd /src | |
parent | c0826212ef3fc4b74a26dedd1788074a3f96ad48 (diff) | |
download | efl-57a5655f889a293adb11db09a4f35378aa29a9bb.tar.gz |
exactness: Fix compiler warning of uninitialized variable
Compiler is warning us here that ex_img has not been initialized after
being malloc'd, so let's initialize it
Diffstat (limited to 'src')
-rw-r--r-- | src/bin/exactness/player.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/exactness/player.c b/src/bin/exactness/player.c index 66506ba729..419a236018 100644 --- a/src/bin/exactness/player.c +++ b/src/bin/exactness/player.c @@ -209,6 +209,7 @@ _shot_do(Evas *e) if (ex_img) { + memset(ex_img, 0, sizeof(*ex_img)); _dest_unit->imgs = eina_list_append(_dest_unit->imgs, ex_img); _dest_unit->nb_shots++; e_data = ex_img; |