summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-bin-debugger/tools
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2017-12-23 10:02:08 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2017-12-23 11:14:12 +0900
commitaa8786f79cfdf1cc424939bf6390323566e09030 (patch)
treeb80f0ec3a8b111905feb9f648f17f4d72f222793 /mrbgems/mruby-bin-debugger/tools
parent7e520838b3d7bb44db06d30834fba672cfc077f9 (diff)
downloadmruby-aa8786f79cfdf1cc424939bf6390323566e09030.tar.gz
mruby-aa8786f79cfdf1cc424939bf6390323566e09030.zip
Do not initialize a local variable soon to be assigned.
Diffstat (limited to 'mrbgems/mruby-bin-debugger/tools')
-rw-r--r--mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
index 62f7670e0..21fe64127 100644
--- a/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
+++ b/mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c
@@ -84,7 +84,7 @@ dirname(mrb_state *mrb, const char *path)
static source_file*
source_file_new(mrb_state *mrb, mrb_debug_context *dbg, char *filename)
{
- source_file *file = NULL;
+ source_file *file;
file = (source_file*)mrb_malloc(mrb, sizeof(source_file));