aboutsummaryrefslogtreecommitdiffstats
path: root/mpi/mpiutil.c
diff options
context:
space:
mode:
authorWerner Koch <[email protected]>1998-06-26 09:45:36 +0000
committerWerner Koch <[email protected]>1998-06-26 09:45:36 +0000
commit5911e300ff885ec570b59eaef7d8f19785e16fab (patch)
tree79888178beb6f742b784b5edc1da9cd154958e4a /mpi/mpiutil.c
parent0.3 ready (diff)
downloadgnupg-5911e300ff885ec570b59eaef7d8f19785e16fab.tar.gz
gnupg-5911e300ff885ec570b59eaef7d8f19785e16fab.zip
bug fixes
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;
}