summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-09-15 12:44:31 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-15 13:02:15 +0900
commit8619ba6a3850145981c0ee6e86e12a7e25946705 (patch)
tree1a953bfcf0facdfee0468e33302daeabaa5f0b64 /mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
parente5e7bd29efd49c4c207da2985610c9ad878d40b0 (diff)
downloadmruby-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.c2
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;
}