diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-09 09:09:11 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-07-09 09:09:11 +0900 |
| commit | a1ba6cb7282bbe7daa54f35bb628705f8bec230a (patch) | |
| tree | 113e6ce347a8ab1f9d4357bc6a9846d0d5e9eb38 | |
| parent | b3fe9da32920a44c851127b94dd27b318cee199c (diff) | |
| download | mruby-a1ba6cb7282bbe7daa54f35bb628705f8bec230a.tar.gz mruby-a1ba6cb7282bbe7daa54f35bb628705f8bec230a.zip | |
codegen.c: avoid uninitialized local variable.
| -rw-r--r-- | mrbgems/mruby-compiler/core/codegen.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mrbgems/mruby-compiler/core/codegen.c b/mrbgems/mruby-compiler/core/codegen.c index 16488cf33..5b779b63d 100644 --- a/mrbgems/mruby-compiler/core/codegen.c +++ b/mrbgems/mruby-compiler/core/codegen.c @@ -1493,6 +1493,7 @@ readint(codegen_scope *s, const char *p, int base, mrb_bool *overflow) n = c - 'A' + 10; break; default: codegen_error(s, "malformed readint input"); + *overflow = TRUE; /* not reached */ return result; } |
