Minor fix for users that don't have e_config->default_desktop_bg set
authorChristopher Michael <cpmichael1@comcast.net>
Tue, 10 Jan 2006 15:37:44 +0000 (15:37 +0000)
committerChristopher Michael <cpmichael1@comcast.net>
Tue, 10 Jan 2006 15:37:44 +0000 (15:37 +0000)
SVN revision: 19699

src/bin/e_int_config_background.c

index 8ee9fb7..6d95595 100644 (file)
@@ -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 */
 }