projects
/
platform
/
upstream
/
enlightenment.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8b97e4f
)
screen_rotation: Add return after NULL check
90/314990/2
author
TaeHyeon Jeong
<thyeon.jeong@samsung.com>
Mon, 15 Jul 2024 07:40:55 +0000
(16:40 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Thu, 25 Jul 2024 06:13:44 +0000
(06:13 +0000)
Change-Id: I579cb19145cf4425dc2d9b09338b3efd2730b4e2
src/bin/server/e_screen_rotation.c
patch
|
blob
|
history
diff --git
a/src/bin/server/e_screen_rotation.c
b/src/bin/server/e_screen_rotation.c
index
20b760b
..
73a5d35
100644
(file)
--- a/
src/bin/server/e_screen_rotation.c
+++ b/
src/bin/server/e_screen_rotation.c
@@
-22,8
+22,8
@@
_tz_surface_rotation_find(E_Client *ec)
EINA_LIST_FOREACH_SAFE(tzsr_list, l, ll, tzsr)
{
- if (tzsr->ec == ec)
- return tzsr;
+
if (tzsr->ec == ec)
+
return tzsr;
}
return NULL;
@@
-65,6
+65,7
@@
_tz_screen_rotation_cb_get_ignore_output_transform(struct wl_listener *listener,
if (!tzsr)
{
ERR("E_Comp_Screen_Tzsr alloc fail");
+ return;
}
tzsr->ec = ec;
@@
-84,6
+85,7
@@
e_screen_rotation_init()
if (!screen_rotation)
{
ERR("Could not add tizen_screen_rotation to wayland globals");
+ return EINA_FALSE;
}
transform.notify = _tz_screen_rotation_cb_get_ignore_output_transform;