From: ulgal-park Date: Thu, 16 Dec 2021 09:38:03 +0000 (+0900) Subject: boot_anim: fix checking ani->source when adding event loop timer X-Git-Tag: submit/tizen/20210604.124342~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4e2a3a08fa558f5aedafd91ffb6f99acd98187c5;p=platform%2Fcore%2Fuifw%2Fheadless-server.git boot_anim: fix checking ani->source when adding event loop timer Change-Id: I62d050e01ee4562b299281d9b36a53f9b07c424a --- diff --git a/src/output/boot_anim.c b/src/output/boot_anim.c index 83ba500..e6c15a5 100644 --- a/src/output/boot_anim.c +++ b/src/output/boot_anim.c @@ -96,7 +96,7 @@ void boot_ani_start(led_output_t *output) PEPPER_CHECK(ani, return, "failed to alloc\n"); ani->source = wl_event_loop_add_timer(loop, boot_ani_timer_cb, ani); - PEPPER_CHECK(ani, goto err, "failed to wl_event_loop_add_timer()\n"); + PEPPER_CHECK(ani->source, goto err, "failed to wl_event_loop_add_timer()\n"); ret = wl_event_source_timer_update(ani->source, ANI_INTERVAL); PEPPER_CHECK(!ret, goto err, "failed to wl_event_source_timer_update\n");