summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mpi.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/mpi.cpp b/mpi.cpp
index c22e503..5e094ae 100644
--- a/mpi.cpp
+++ b/mpi.cpp
@@ -37,8 +37,9 @@
#include <gcrypt.h>
-Mpi::Mpi() : val_(NULL)
+Mpi::Mpi()
{
+ val_ = gcry_mpi_new(1);
}
Mpi::Mpi(u_int8_t length)