From 76aa1678477f6b1ac90977ff80f0b4b7237f75cf Mon Sep 17 00:00:00 2001 From: fireice-uk Date: Fri, 13 Oct 2017 17:13:44 +0100 Subject: [PATCH] doh! != instead of == --- xmrstak/misc/environment.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;