diff options
Diffstat (limited to 'apps')
-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) | |||
854 | char line[128]; | 854 | char line[128]; |
855 | 855 | ||
856 | fd = open(file, O_RDONLY); | 856 | fd = open(file, O_RDONLY); |
857 | if (-1 == fd) | 857 | if (fd < 0) |
858 | return false; | 858 | return false; |
859 | 859 | ||
860 | while (read_line(fd, line, sizeof line) > 0) | 860 | while (read_line(fd, line, sizeof line) > 0) |