aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpiutil.c
diff options
context:
space:
mode:
Diffstat (limited to 'mpi/mpiutil.c')
-rw-r--r--mpi/mpiutil.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/mpi/mpiutil.c b/mpi/mpiutil.c
index 92b16538f..231e5d578 100644
--- a/mpi/mpiutil.c
+++ b/mpi/mpiutil.c
@@ -64,6 +64,7 @@ mpi_alloc( unsigned nlimbs )
a->nlimbs = 0;
a->sign = 0;
a->flags = 0;
+ a->nbits = 0;
return a;
}
@@ -96,6 +97,7 @@ mpi_alloc_secure( unsigned nlimbs )
a->flags |= 1;
a->nlimbs = 0;
a->sign = 0;
+ a->nbits = 0;
return a;
}
@@ -175,6 +177,7 @@ void
mpi_clear( MPI a )
{
a->nlimbs = 0;
+ a->nbits = 0;
}