diff --git a/prism_compile.c b/prism_compile.c index 909e6b26da8e4d..47b0d331e987ed 100644 --- a/prism_compile.c +++ b/prism_compile.c @@ -5095,7 +5095,7 @@ pm_compile_node(rb_iseq_t *iseq, const pm_node_t *node, LINK_ANCHOR *const ret, else { // Establish branch coverage for the case node. VALUE branches = Qfalse; - rb_code_location_t case_location; + rb_code_location_t case_location = { 0 }; int branch_id = 0; if (PM_BRANCH_COVERAGE_P(iseq)) {