From db70f8d20b7f2a7056c94ea9a77ea24ee62fb154 Mon Sep 17 00:00:00 2001 From: Jens Arnold Date: Sat, 23 Feb 2008 10:17:31 +0000 Subject: Save empty filename settings when necessary. Fixes the inability to save the 'no backdrop' setting due to the new default. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@16384 a1c6a512-1295-4272-9138-f99709370657 --- apps/settings.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'apps') diff --git a/apps/settings.c b/apps/settings.c index a77af6fc44..5bbdcb1784 100644 --- a/apps/settings.c +++ b/apps/settings.c @@ -524,9 +524,8 @@ static bool settings_write_config(char* filename, int options) break; case F_T_CHARPTR: case F_T_UCHARPTR: - if (((char*)settings[i].setting)[0] == '\0') - break; - if (settings[i].filename_setting->prefix) + if (((char*)settings[i].setting)[0] + && settings[i].filename_setting->prefix) { snprintf(value,MAX_PATH,"%s%s%s", settings[i].filename_setting->prefix, @@ -537,8 +536,7 @@ static bool settings_write_config(char* filename, int options) settings[i].filename_setting->max_len); break; } /* switch () */ - if (value[0]) - fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value); + fdprintf(fd,"%s: %s\r\n",settings[i].cfg_name,value); } /* for(...) */ close(fd); #if CONFIG_TUNER -- cgit v1.2.3