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:
d77fcec
)
e_policy: fix bug detected by static analysis tool
04/139104/1
author
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 17 Jul 2017 09:35:14 +0000
(18:35 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 17 Jul 2017 09:35:14 +0000
(18:35 +0900)
Change-Id: Ie5e62695db029cf1dbbf1a4fe3ec5e012e1235d3
src/bin/e_policy.c
patch
|
blob
|
history
diff --git
a/src/bin/e_policy.c
b/src/bin/e_policy.c
index
b681e4f
..
91c2b59
100644
(file)
--- a/
src/bin/e_policy.c
+++ b/
src/bin/e_policy.c
@@
-118,9
+118,11
@@
_e_policy_client_add(E_Client *ec)
if (e_object_is_del(E_OBJECT(ec))) return NULL;
pc = eina_hash_find(hash_policy_clients, &ec);
- if (pc) return
NULL
;
+ if (pc) return
pc
;
pc = E_NEW(E_Policy_Client, 1);
+ if (!pc) return NULL;
+
pc->ec = ec;
eina_hash_add(hash_policy_clients, &ec, pc);
@@
-1423,6
+1425,8
@@
e_policy_desk_add(E_Desk *desk)
if (pd) return;
pd = E_NEW(E_Policy_Desk, 1);
+ if (!pd) return;
+
pd->desk = desk;
pd->zone = desk->zone;