diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 2 |
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) |