Commit c9c27e9d authored by dearblue's avatar dearblue

Suppress warning by gcc with `-Wmaybe-uninitialized`

parent 71242c0f
......@@ -164,6 +164,8 @@ mrb_str_new_capa(mrb_state *mrb, size_t capa)
}
else if (capa >= MRB_INT_MAX) {
mrb_raise(mrb, E_ARGUMENT_ERROR, "string capacity size too big");
/* not reached */
s = NULL;
}
else {
s = str_init_normal_capa(mrb, mrb_obj_alloc_string(mrb), NULL, 0, capa);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment