diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-15 12:44:31 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-09-15 13:02:15 +0900 |
| commit | 8619ba6a3850145981c0ee6e86e12a7e25946705 (patch) | |
| tree | 1a953bfcf0facdfee0468e33302daeabaa5f0b64 /mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c | |
| parent | e5e7bd29efd49c4c207da2985610c9ad878d40b0 (diff) | |
| download | mruby-8619ba6a3850145981c0ee6e86e12a7e25946705.tar.gz mruby-8619ba6a3850145981c0ee6e86e12a7e25946705.zip | |
Use `struct` initializer instead of `memset`.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c')
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c index 9df33bc60..14b75aba7 100644 --- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c +++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c @@ -141,7 +141,7 @@ static listcmd_parser_state* listcmd_parser_state_new(mrb_state *mrb) { listcmd_parser_state *st = (listcmd_parser_state*)mrb_malloc(mrb, sizeof(listcmd_parser_state)); - memset(st, 0, sizeof(listcmd_parser_state)); + *st = (listcmd_parser_state){0}; return st; } |
