From: Christopher Michael Date: Wed, 11 Jan 2006 04:35:51 +0000 (+0000) Subject: Trap in case current_theme is NULL to avoid a potential Segv X-Git-Tag: submit/efl/20131021.015651~14182 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=83df74ef6da166fbecce5f25336de6e4775fe58b;p=platform%2Fupstream%2Fenlightenment.git Trap in case current_theme is NULL to avoid a potential Segv SVN revision: 19711 --- diff --git a/src/bin/e_int_config_theme.c b/src/bin/e_int_config_theme.c index 5f1bd85..eb2875d 100644 --- a/src/bin/e_int_config_theme.c +++ b/src/bin/e_int_config_theme.c @@ -106,10 +106,13 @@ _e_config_theme_cb_standard(void *data) e_widget_image_object_set(d->cfd->data, e_thumb_evas_object_get(d->file, d->cfd->dia->win->evas, 160, 120, 1)); cfdata = d->cfd->cfdata; - if (!strcmp(cfdata->theme, cfdata->current_theme)) + if (cfdata->current_theme) { - e_dialog_button_disable_num_set(d->cfd->dia, 0, 1); - e_dialog_button_disable_num_set(d->cfd->dia, 1, 1); + if (!strcmp(cfdata->theme, cfdata->current_theme)) + { + e_dialog_button_disable_num_set(d->cfd->dia, 0, 1); + e_dialog_button_disable_num_set(d->cfd->dia, 1, 1); + } } }