Merge pull request #205 from svost/scan-build-nSize
authorCryptoManiac <CryptoManiac@users.noreply.github.com>
Mon, 13 Apr 2015 19:14:37 +0000 (22:14 +0300)
committerCryptoManiac <CryptoManiac@users.noreply.github.com>
Mon, 13 Apr 2015 19:14:37 +0000 (22:14 +0300)
Clang scan-build warning: Value stored to nSize is never read.

src/serialize.h

index a1f8a0e..52328c3 100644 (file)
@@ -1106,10 +1106,7 @@ public:
         if (nReadPosNext >= vch.size())
         {
             if (nReadPosNext > vch.size())
-            {
                 setstate(std::ios::failbit, "CDataStream::ignore() : end of data");
-                nSize = (int)(vch.size() - nReadPos);
-            }
             nReadPos = 0;
             vch.clear();
             return (*this);