diff options
Diffstat (limited to 'apps/plugins/rockblox.c')
-rw-r--r-- | apps/plugins/rockblox.c | 2 |
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) | |||
811 | int fd; | 811 | int fd; |
812 | 812 | ||
813 | fd = rb->open(RESUME_FILE, O_WRONLY|O_CREAT); | 813 | fd = rb->open(RESUME_FILE, O_WRONLY|O_CREAT); |
814 | if (fd <= 0) | 814 | if (fd < 0) |
815 | goto fail; | 815 | goto fail; |
816 | 816 | ||
817 | if (rb->write(fd, &rockblox_status, sizeof(struct _rockblox_status)) | 817 | if (rb->write(fd, &rockblox_status, sizeof(struct _rockblox_status)) |