summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/settings.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/settings.c b/apps/settings.c
index da7ecb461d..196c432c8f 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -1561,19 +1561,19 @@ bool settings_load_config(const char* file)
#ifdef HAVE_LCD_COLOR
unload_wps_backdrop();
#endif
- int fd2;
+ int fd2;
if ((fd2 = open(value, O_RDONLY)) >= 0) {
- close(fd2);
+ close(fd2);
set_file(value, (char *)global_settings.wps_file, MAX_FILENAME);
- }
+ }
}
#if defined(HAVE_REMOTE_LCD) && (NB_SCREENS > 1)
else if (!strcasecmp(name, "rwps")) {
- int fd2;
+ int fd2;
if ((fd2 = open(value, O_RDONLY)) >= 0) {
- close(fd2);
+ close(fd2);
set_file(value, (char *)global_settings.rwps_file, MAX_FILENAME);
- }
+ }
}
#endif
else if (!strcasecmp(name, "lang")) {