diff options
Diffstat (limited to 'apps/plugins/rockboy/menu.c')
-rw-r--r-- | apps/plugins/rockboy/menu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockboy/menu.c b/apps/plugins/rockboy/menu.c index bd4088300c..710a47646a 100644 --- a/apps/plugins/rockboy/menu.c +++ b/apps/plugins/rockboy/menu.c | |||
@@ -178,7 +178,7 @@ static bool do_file(char *path, char *desc, bool is_load) { | |||
178 | file_mode = is_load ? O_RDONLY : (O_WRONLY | O_CREAT); | 178 | file_mode = is_load ? O_RDONLY : (O_WRONLY | O_CREAT); |
179 | 179 | ||
180 | /* attempt to open file descriptor here */ | 180 | /* attempt to open file descriptor here */ |
181 | if ((fd = open(path, file_mode)) <= 0) | 181 | if ((fd = open(path, file_mode)) < 0) |
182 | return false; | 182 | return false; |
183 | 183 | ||
184 | /* load/save state */ | 184 | /* load/save state */ |