summaryrefslogtreecommitdiffstats
path: root/mpi
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>1998-06-26 11:45:36 +0200
committerWerner Koch <wk@gnupg.org>1998-06-26 11:45:36 +0200
commit5911e300ff885ec570b59eaef7d8f19785e16fab (patch)
tree79888178beb6f742b784b5edc1da9cd154958e4a /mpi
parent0.3 ready (diff)
downloadgnupg2-5911e300ff885ec570b59eaef7d8f19785e16fab.tar.xz
gnupg2-5911e300ff885ec570b59eaef7d8f19785e16fab.zip
bug fixes
Diffstat (limited to 'mpi')
-rw-r--r--mpi/ChangeLog6
-rw-r--r--mpi/mpiutil.c3
2 files changed, 9 insertions, 0 deletions
diff --git a/mpi/ChangeLog b/mpi/ChangeLog
index 0519495c9..a52381d05 100644
--- a/mpi/ChangeLog
+++ b/mpi/ChangeLog
@@ -1,3 +1,9 @@
+Fri Jun 26 11:19:06 1998 Werner Koch (wk@isil.d.shuttle.de)
+
+ * mpiutil.c (mpi_alloc): set nbits to 0.
+ (mpi_alloc_secure): Ditto.
+ (mpi_clear): Ditto.
+
Thu Jun 25 11:50:01 1998 Werner Koch (wk@isil.d.shuttle.de)
* mips3/*.S: New
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;
}