From 2efd79bd500237845b32aae60f347f134552f01b Mon Sep 17 00:00:00 2001 From: sebastid Date: Thu, 10 Aug 2006 13:29:59 +0000 Subject: [PATCH] Don't bother if there is no file selected. SVN revision: 24531 --- src/bin/e_eap_editor.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/bin/e_eap_editor.c b/src/bin/e_eap_editor.c index 30f87ca55..ad77632b1 100644 --- a/src/bin/e_eap_editor.c +++ b/src/bin/e_eap_editor.c @@ -453,9 +453,10 @@ _e_eap_edit_change_cb(void *data, Evas_Object *obj) cfdata = data; file = e_widget_fsel_selection_path_get(obj); + if (!file) return; E_FREE(cfdata->image); - if (file) cfdata->image = strdup(file); + cfdata->image = strdup(file); } static void