Check there are callbacks before trying to copy them.

Patch by Otávio Pontes


SVN revision: 52323
This commit is contained in:
Iván Briano 2010-09-15 19:51:08 +00:00
parent fdc15d4495
commit 20ea0eef4e
1 changed files with 1 additions and 1 deletions

View File

@ -328,7 +328,7 @@ _evas_smart_class_callbacks_create(Evas_Smart *s)
for (n = 0, sc = s->smart_class; sc; sc = sc->parent)
{
const Evas_Smart_Cb_Description *d;
for (d = sc->callbacks; d->name; d++)
for (d = sc->callbacks; d && d->name; d++)
s->callbacks.array[n++] = d;
}
evas_smart_cb_descriptions_fix(&s->callbacks);