summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-09-20 19:13:17 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-09-20 19:13:17 +0900
commitd6dd6f0e7bb8977ed97a032256d34033ac15905a (patch)
treef07699b3752fd8738b9a8dce9e1511663a3c9d64 /mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
parent8be78dbf9d41a7cbe5c6228ec872a787de0f5adc (diff)
downloadmruby-d6dd6f0e7bb8977ed97a032256d34033ac15905a.tar.gz
mruby-d6dd6f0e7bb8977ed97a032256d34033ac15905a.zip
Update `struct` initializer to work with relatively older `C++`.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
index 14b75aba7..0714f3f21 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/cmdmisc.c
@@ -141,7 +141,8 @@ 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));
- *st = (listcmd_parser_state){0};
+ static const listcmd_parser_state st_zero = {0};
+ *st = st_zero;
return st;
}