summaryrefslogtreecommitdiffstats
path: root/xmrstak/misc/environment.hpp
diff options
context:
space:
mode:
authorfireice-uk <fireice-uk@users.noreply.github.com>2017-10-13 17:13:44 +0100
committerfireice-uk <fireice-uk@users.noreply.github.com>2017-10-13 17:13:44 +0100
commit76aa1678477f6b1ac90977ff80f0b4b7237f75cf (patch)
tree8d60c758cd9f39ef70544e15f8f19213873ad93e /xmrstak/misc/environment.hpp
parentd59495110dc5d4924b43926d33c5d29b0103d0e0 (diff)
downloadxmr-stak-76aa1678477f6b1ac90977ff80f0b4b7237f75cf.zip
xmr-stak-76aa1678477f6b1ac90977ff80f0b4b7237f75cf.tar.gz
doh! != instead of ==
Diffstat (limited to 'xmrstak/misc/environment.hpp')
-rw-r--r--xmrstak/misc/environment.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmrstak/misc/environment.hpp b/xmrstak/misc/environment.hpp
index 87c512a..cd3ce9a 100644
--- a/xmrstak/misc/environment.hpp
+++ b/xmrstak/misc/environment.hpp
@@ -18,7 +18,7 @@ struct environment
if(env == nullptr)
{
- if(init != nullptr)
+ if(init == nullptr)
env = new environment;
else
env = init;
OpenPOWER on IntegriCloud