summaryrefslogtreecommitdiff
path: root/apps/settings.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/settings.c')
-rw-r--r--apps/settings.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/settings.c b/apps/settings.c
index 9676f497d6..18a9e86fab 100644
--- a/apps/settings.c
+++ b/apps/settings.c
@@ -854,7 +854,7 @@ bool settings_load_config(char* file)
char line[128];
fd = open(file, O_RDONLY);
- if (-1 == fd)
+ if (fd < 0)
return false;
while (read_line(fd, line, sizeof line) > 0)