diff options
Diffstat (limited to 'apps/plugins/random_folder_advance_config.c')
-rw-r--r-- | apps/plugins/random_folder_advance_config.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/plugins/random_folder_advance_config.c b/apps/plugins/random_folder_advance_config.c index ba3f0d3f7e..36b9ebfcbf 100644 --- a/apps/plugins/random_folder_advance_config.c +++ b/apps/plugins/random_folder_advance_config.c | |||
@@ -133,7 +133,7 @@ bool custom_dir(void) | |||
133 | int i, errors = 0; | 133 | int i, errors = 0; |
134 | 134 | ||
135 | /* populate removed dirs array */ | 135 | /* populate removed dirs array */ |
136 | if((fd2 = rb->open(RFADIR_FILE,O_RDONLY)) > 0) | 136 | if((fd2 = rb->open(RFADIR_FILE,O_RDONLY)) >= 0) |
137 | { | 137 | { |
138 | while ((rb->read_line(fd2, line, MAX_PATH - 1)) > 0) | 138 | while ((rb->read_line(fd2, line, MAX_PATH - 1)) > 0) |
139 | { | 139 | { |
@@ -148,7 +148,7 @@ bool custom_dir(void) | |||
148 | rb->close(fd2); | 148 | rb->close(fd2); |
149 | } | 149 | } |
150 | 150 | ||
151 | if((fd2 = rb->open(RFADIR_FILE,O_RDONLY)) > 0) | 151 | if((fd2 = rb->open(RFADIR_FILE,O_RDONLY)) >= 0) |
152 | { | 152 | { |
153 | while ((rb->read_line(fd2, line, MAX_PATH - 1)) > 0) | 153 | while ((rb->read_line(fd2, line, MAX_PATH - 1)) > 0) |
154 | { | 154 | { |