e_policy: fix bug for NULL_AFTER_DEREF error 88/300188/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Wed, 18 Oct 2023 06:23:33 +0000 (15:23 +0900)
committerTizen Window System <tizen.windowsystem@gmail.com>
Wed, 18 Oct 2023 06:39:32 +0000 (15:39 +0900)
Change-Id: I9254cd1681ad310e53fc7b92a5ee036b96e8a7ba

src/bin/e_policy.c

index e6e2180..c6134a6 100644 (file)
@@ -1376,8 +1376,9 @@ _e_policy_cb_client_property(void *data EINA_UNUSED, int type EINA_UNUSED, void
    E_Client *ec;
 
    ev = event;
+   if (!ev || (!ev->ec)) return ECORE_CALLBACK_PASS_ON;
+
    ec = ev->ec;
-   if (!ev || (!ec)) return ECORE_CALLBACK_PASS_ON;
    if (ev->property & E_CLIENT_PROPERTY_CLIENT_TYPE)
      {
         if (e_policy_client_is_home_screen(ec))