It was expecting for a null terminator. But that wasn't the
case. Using parts_count instead.
SVN revision: 60537
Edje_Part_Collection *col;
Edje_Part **part;
char *p;
+ unsigned int i;
CHKPARAM(1);
ed = embryo_program_data_get(ep);
if (!p) return -1;
col = ed->collection;
if (!col) return -1;
- for (part = col->parts; *part; part++)
+ part = col->parts;
+ for (i = 0; i < col->parts_count; i++, part++)
{
if (!(*part)->name) continue;
if (!strcmp((*part)->name, p)) return (*part)->id;