summaryrefslogtreecommitdiffhomepage
path: root/mrbgems/mruby-compiler/core/codegen.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-07-09 09:09:11 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-07-09 09:09:11 +0900
commita1ba6cb7282bbe7daa54f35bb628705f8bec230a (patch)
tree113e6ce347a8ab1f9d4357bc6a9846d0d5e9eb38 /mrbgems/mruby-compiler/core/codegen.c
parentb3fe9da32920a44c851127b94dd27b318cee199c (diff)
downloadmruby-a1ba6cb7282bbe7daa54f35bb628705f8bec230a.tar.gz
mruby-a1ba6cb7282bbe7daa54f35bb628705f8bec230a.zip
codegen.c: avoid uninitialized local variable.
Diffstat (limited to 'mrbgems/mruby-compiler/core/codegen.c')
-rw-r--r--mrbgems/mruby-compiler/core/codegen.c1
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;
}