Initialize key_length to 0 to avoid it used uninitialized when passed to rb_str_new