From aa8786f79cfdf1cc424939bf6390323566e09030 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Sat, 23 Dec 2017 10:02:08 +0900 Subject: Do not initialize a local variable soon to be assigned. --- mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); -- cgit v1.2.3