diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-23 10:02:08 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2017-12-23 11:14:12 +0900 |
| commit | aa8786f79cfdf1cc424939bf6390323566e09030 (patch) | |
| tree | b80f0ec3a8b111905feb9f648f17f4d72f222793 | |
| parent | 7e520838b3d7bb44db06d30834fba672cfc077f9 (diff) | |
| download | mruby-aa8786f79cfdf1cc424939bf6390323566e09030.tar.gz mruby-aa8786f79cfdf1cc424939bf6390323566e09030.zip | |
Do not initialize a local variable soon to be assigned.
| -rw-r--r-- | mrbgems/mruby-bin-debugger/tools/mrdb/apilist.c | 2 |
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)); |
