bigint.c (mpz_init_set): fully initialize mpz_t first.

This commit is contained in:
Yukihiro "Matz" Matsumoto
2022-08-26 14:18:30 +09:00
parent 62c36c03b3
commit 4e0da4f0d8
+1 -1
View File
@@ -61,7 +61,7 @@ mpz_set(mrb_state *mrb, mpz_t *y, mpz_t *x)
static void
mpz_init_set(mrb_state *mrb, mpz_t *s, mpz_t *t)
{
s->p = NULL;
mpz_init(mrb, s);
mpz_set(mrb, s, t);
}