summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/plugins/rockblox.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/rockblox.c b/apps/plugins/rockblox.c
index 368ad6bc7e..85fbf1f5a6 100644
--- a/apps/plugins/rockblox.c
+++ b/apps/plugins/rockblox.c
@@ -811,7 +811,7 @@ static int dump_resume(void)
int fd;
fd = rb->open(RESUME_FILE, O_WRONLY|O_CREAT);
- if (fd <= 0)
+ if (fd < 0)
goto fail;
if (rb->write(fd, &rockblox_status, sizeof(struct _rockblox_status))