diff options
author | Stefan Schmidt <s.schmidt@samsung.com> | 2015-02-12 15:24:27 +0100 |
---|---|---|
committer | Stefan Schmidt <s.schmidt@samsung.com> | 2015-02-12 15:30:11 +0100 |
commit | 8cbe2882276b048f096cbc9a6def4e011ba5eb46 (patch) | |
tree | ea4ed542fe620daa187786c2af7e641c17590e07 /src/bin/edje/edje_cc_out.c | |
parent | 024c9dc858380431c956998df117f5efcbebb38e (diff) |
edje_cc: Avoid segfault when strcmp NULL items
Martin reported a porblem with one of the SHR project edc files after an upgrade
to 1.13. The segfault itself is easy enough to fix here but I think there might
be other problems with the edc after this segfault is gone. We will see.
Fixes T2106
Diffstat (limited to '')
-rwxr-xr-x | src/bin/edje/edje_cc_out.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/edje/edje_cc_out.c b/src/bin/edje/edje_cc_out.c index a284bebfff..b80e59dd4d 100755 --- a/src/bin/edje/edje_cc_out.c +++ b/src/bin/edje/edje_cc_out.c | |||
@@ -387,7 +387,7 @@ check_source_links(Edje_Part_Collection *pc, Edje_Part *ep, Eet_File *ef, Eina_L | |||
387 | EINA_LIST_FOREACH(edje_collections, l, pc_source) | 387 | EINA_LIST_FOREACH(edje_collections, l, pc_source) |
388 | { | 388 | { |
389 | /* Find sourced group */ | 389 | /* Find sourced group */ |
390 | if (strcmp(ep->source, pc_source->part) == 0) | 390 | if (ep->source && pc_source->part && strcmp(ep->source, pc_source->part) == 0) |
391 | { | 391 | { |
392 | /* Go through every part to find parts with type GROUP */ | 392 | /* Go through every part to find parts with type GROUP */ |
393 | for (i = 0; i < pc_source->parts_count; ++i) | 393 | for (i = 0; i < pc_source->parts_count; ++i) |