From bbdf2868c9fb91d528123875ee95111f99d8536e Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 29 Jul 2018 22:51:38 -0400 Subject: [PATCH] fusee-secondary/fs_dev: Correct uninitialized cast within fsdev_seek() Previously this was casting the same unassigned variable that was being assigned to. --- fusee/fusee-secondary/src/fs_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fusee/fusee-secondary/src/fs_dev.c b/fusee/fusee-secondary/src/fs_dev.c index d6fda4a1b..dec7baa27 100644 --- a/fusee/fusee-secondary/src/fs_dev.c +++ b/fusee/fusee-secondary/src/fs_dev.c @@ -442,7 +442,7 @@ static ssize_t fsdev_read(struct _reent *r, void *fd, char *ptr, size_t len) { } static off_t fsdev_seek(struct _reent *r, void *fd, off_t pos, int whence) { - FIL *f = (FIL *)f; + FIL *f = (FIL *)fd; FSIZE_t off; int ret;