summaryrefslogtreecommitdiff
path: root/src/lib/edje
diff options
context:
space:
mode:
authorBruno Dilly <bdilly@profusion.mobi>2017-01-26 18:26:23 -0200
committerBruno Dilly <bdilly@profusion.mobi>2017-02-01 17:19:32 -0200
commit9893c6d91afb3b2b71d869f4852fbd217d87b6aa (patch)
treefa4d676ee9117bb2915f614432f8e295e583fbd0 /src/lib/edje
parent0293c360ebae28f2bad993982dc24e87ac296781 (diff)
edje: fix CID 1368019 - Null pointer dereferences
It only should check if it's allowed to focus a part if a part was passed (if rp is null such check should be skipped).
Diffstat (limited to 'src/lib/edje')
-rw-r--r--src/lib/edje/edje_program.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/edje/edje_program.c b/src/lib/edje/edje_program.c
index aac74b266a..cc3ae96578 100644
--- a/src/lib/edje/edje_program.c
+++ b/src/lib/edje/edje_program.c
@@ -662,7 +662,7 @@ _edje_part_focus_set(Edje *ed, const char *seat_name, Edje_Real_Part *rp)
662 662
663 if (focused_part != rp) 663 if (focused_part != rp)
664 { 664 {
665 if ((rp->part->allowed_seats) && 665 if (rp && (rp->part->allowed_seats) &&
666 (!_edje_part_allowed_seat_find(rp, sname))) 666 (!_edje_part_allowed_seat_find(rp, sname)))
667 goto not_allowed; 667 goto not_allowed;
668 668