everything/gadget: fix segv

SVN revision: 65297
This commit is contained in:
Gustavo Sverzut Barbieri 2011-11-16 17:20:32 +00:00
parent cb148dd11e
commit 72d14f5466
1 changed files with 1 additions and 1 deletions

View File

@ -85,7 +85,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
o = edje_object_add(gc->evas);
e_theme_edje_object_set(o, "base/theme/modules/everything", "e/modules/everything/gadget");
if ((strcmp(inst->cfg->plugin, "Start") != 0) &&
if (((inst->cfg->plugin) && (strcmp(inst->cfg->plugin, "Start") != 0)) &&
(p = evry_plugin_find(inst->cfg->plugin)))
{
Evas_Object *oo = evry_util_icon_get(EVRY_ITEM(p), gc->evas);