From 57a5655f889a293adb11db09a4f35378aa29a9bb Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 5 Oct 2021 10:27:45 -0400 Subject: 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 --- src/bin/exactness/player.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') 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; -- cgit v1.2.1