projects
/
platform
/
core
/
uifw
/
e-mod-tizen-devicemgr.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04e5d52
)
add null checking
49/85749/1
author
Boram Park
<boram1288.park@samsung.com>
Mon, 29 Aug 2016 02:53:21 +0000
(11:53 +0900)
committer
Boram Park
<boram1288.park@samsung.com>
Mon, 29 Aug 2016 02:53:21 +0000
(11:53 +0900)
Change-Id: If1c035e0612dd0a48e313ce865eedf5422ec8854
src/e_devicemgr_viewport.c
patch
|
blob
|
history
diff --git
a/src/e_devicemgr_viewport.c
b/src/e_devicemgr_viewport.c
index 0a502056766346fd13edc94a4090d319cf9a14e3..20ebc191a1c8829fed1aba24f57aefc6d3f835b7 100644
(file)
--- a/
src/e_devicemgr_viewport.c
+++ b/
src/e_devicemgr_viewport.c
@@
-760,6
+760,9
@@
_destination_mode_calculate_destination(E_Viewport *viewport, Eina_Rectangle *re
if (!viewport->epc)
{
E_Zone *zone = e_comp_zone_xy_get(ec->x, ec->y);
+
+ EINA_SAFETY_ON_FALSE_RETURN_VAL(zone != NULL, EINA_FALSE);
+
pw = zone->w;
ph = zone->h;
}
@@
-1023,8
+1026,7
@@
_e_devicemgr_viewport_apply_destination(E_Viewport *viewport, Eina_Rectangle *rr
{
E_Zone *zone = e_comp_zone_xy_get(ec->x, ec->y);
- if (zone == NULL)
- return EINA_FALSE;
+ EINA_SAFETY_ON_FALSE_RETURN_VAL(zone != NULL, EINA_FALSE);
prect.x = prect.y = 0;
prect.w = zone->w;