CScriptCheck : Add initializers
authorCryptoManiac <balthazar@yandex.ru>
Mon, 2 May 2016 18:33:29 +0000 (21:33 +0300)
committerCryptoManiac <balthazar@yandex.ru>
Mon, 2 May 2016 18:33:29 +0000 (21:33 +0300)
src/main.h

index 610ce94..b8e6cb7 100644 (file)
@@ -732,10 +732,10 @@ class CScriptCheck
 {
 private:
     CScript scriptPubKey;
-    const CTransaction *ptxTo;
-    unsigned int nIn;
-    unsigned int nFlags;
-    int nHashType;
+    const CTransaction *ptxTo = nullptr;
+    unsigned int nIn = 0;
+    unsigned int nFlags = 0;
+    int nHashType = 0;
 
 public:
     CScriptCheck() {}