e_client_video: null checking on ecv->zone 52/295552/2
authorSooChan Lim <sc1.lim@samsung.com>
Mon, 10 Jul 2023 23:52:29 +0000 (08:52 +0900)
committerSooChan Lim <sc1.lim@samsung.com>
Tue, 11 Jul 2023 00:29:06 +0000 (00:29 +0000)
Change-Id: Iaca377e5e2011ee658b9b463877e8b6f1f5208f3

src/bin/video/e_client_video.c

index ad5e6cf..769a54e 100644 (file)
@@ -366,6 +366,7 @@ _e_client_video_init(E_Client_Video *ecv, E_Client *ec)
 
    ecv->ec = ec;
    ecv->zone = e_comp_zone_find_by_ec(ec);
+   EINA_SAFETY_ON_NULL_RETURN_VAL(ecv->zone, EINA_FALSE);
 
    res = _e_client_video_comp_iface_init(ecv);
    if (!res)