diff options
Diffstat (limited to 'src/stdio/vfscanf.c')
-rw-r--r-- | src/stdio/vfscanf.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/stdio/vfscanf.c b/src/stdio/vfscanf.c index ad9f5614..99053885 100644 --- a/src/stdio/vfscanf.c +++ b/src/stdio/vfscanf.c @@ -3,12 +3,12 @@ int vfscanf(FILE * restrict stream, const char * restrict format, va_list arg) { - int ret = 0; - struct io_options opt = {0}; - opt.fnname = __func__; - opt.stream = stream; - ret = __scanf(&opt, format, arg); - return ret; + struct io_options opt = { + .fnname = __func__, + .stream = stream, + }; + + return __scanf(&opt, format, arg); } /* |