From: Christopher Michael Date: Tue, 10 Jan 2006 15:37:44 +0000 (+0000) Subject: Minor fix for users that don't have e_config->default_desktop_bg set X-Git-Tag: submit/efl/20131021.015651~14185 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c88f87fb836cf433bcc4bcf617b8bd6c7fb2bca6;p=platform%2Fupstream%2Fenlightenment.git Minor fix for users that don't have e_config->default_desktop_bg set SVN revision: 19699 --- diff --git a/src/bin/e_int_config_background.c b/src/bin/e_int_config_background.c index 8ee9fb7..6d95595 100644 --- a/src/bin/e_int_config_background.c +++ b/src/bin/e_int_config_background.c @@ -59,7 +59,15 @@ static void _fill_data(CFData *cfdata) { cfdata->bg_method = BG_SET_DEFAULT_DESK; - cfdata->current_file = strdup(e_config->desktop_default_background); + if (e_config->desktop_default_background) + { + cfdata->current_file = strdup(e_config->desktop_default_background); + } + else + { + cfdata->current_file = NULL; + } + /* TODO: get default bg */ }