diff options
Diffstat (limited to 'tools/mrbc/mrbc.c')
| -rw-r--r-- | tools/mrbc/mrbc.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/mrbc/mrbc.c b/tools/mrbc/mrbc.c index 94675c391..5382b90a8 100644 --- a/tools/mrbc/mrbc.c +++ b/tools/mrbc/mrbc.c @@ -70,8 +70,9 @@ parse_args(mrb_state *mrb, int argc, char **argv, struct _args *args) char *infile = NULL; char *outfile = NULL; char **origargv = argv; + static const struct _args args_zero = { 0 }; - memset(args, 0, sizeof(*args)); + *args = args_zero; args->ext = RITEBIN_EXT; for (argc--,argv++; argc > 0; argc--,argv++) { |
