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