From 9c5c4769a9c7a16aecc6cc7dd297bfe243dd022f Mon Sep 17 00:00:00 2001 From: weidai Date: Tue, 29 Jul 2003 01:18:33 +0000 Subject: fix potential threading problem with initialization of static objects --- ec2n.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'ec2n.cpp') diff --git a/ec2n.cpp b/ec2n.cpp index d668c4f0..946a9559 100644 --- a/ec2n.cpp +++ b/ec2n.cpp @@ -171,8 +171,7 @@ bool EC2N::Equal(const Point &P, const Point &Q) const const EC2N::Point& EC2N::Identity() const { - static const Point zero; - return zero; + return Singleton().Ref(); } const EC2N::Point& EC2N::Inverse(const Point &P) const -- cgit v1.2.1