summaryrefslogtreecommitdiffhomepage
path: root/src/symbol.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-02-25 10:43:16 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-02-25 10:43:16 +0900
commitebd976be842c0c16be855e7f9d7cea71a95311f0 (patch)
tree2d5cc0138033d4f37071b83f28998a943cfe9528 /src/symbol.c
parentb201dbeb3dededcbbf743fdf555c3530cc5dffb7 (diff)
downloadmruby-ebd976be842c0c16be855e7f9d7cea71a95311f0.tar.gz
mruby-ebd976be842c0c16be855e7f9d7cea71a95311f0.zip
initialize sname before interning
Diffstat (limited to 'src/symbol.c')
-rw-r--r--src/symbol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/symbol.c b/src/symbol.c
index b311551c0..7971f71ca 100644
--- a/src/symbol.c
+++ b/src/symbol.c
@@ -97,7 +97,7 @@ mrb_value
mrb_check_intern(mrb_state *mrb, const char *name, size_t len)
{
khash_t(n2s) *h = mrb->name2sym;
- symbol_name sname;
+ symbol_name sname = { 0 };
khiter_t k;
if (len > UINT16_MAX) {