diff options
author | Jack Lloyd <[email protected]> | 2015-12-26 22:08:02 -0500 |
---|---|---|
committer | Jack Lloyd <[email protected]> | 2015-12-26 22:08:02 -0500 |
commit | fce8f2149757b6b234d89685e58db79ade27040a (patch) | |
tree | 8d718cc72ef23cdcf8d9f6a156ed3b61d1879e63 /src/lib/stream/rc4 | |
parent | c2515f7b098a5569cb97a134ffa83fc475cac07c (diff) | |
parent | 8b7a31fbfcbbd47f34f4f4edad4d05f25a9d0ecd (diff) |
Merge pull request #378 from neusdan/warning_fixes
Some trivial compiler and PVS-Studio warning fixes
Diffstat (limited to 'src/lib/stream/rc4')
-rw-r--r-- | src/lib/stream/rc4/rc4.cpp | 2 | ||||
-rw-r--r-- | src/lib/stream/rc4/rc4.h | 7 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/lib/stream/rc4/rc4.cpp b/src/lib/stream/rc4/rc4.cpp index 6146e2818..9a6268b8c 100644 --- a/src/lib/stream/rc4/rc4.cpp +++ b/src/lib/stream/rc4/rc4.cpp @@ -111,6 +111,6 @@ void RC4::clear() /* * RC4 Constructor */ -RC4::RC4(size_t s) : SKIP(s), X(0), Y(0) {} +RC4::RC4(size_t s) : SKIP(s) {} } diff --git a/src/lib/stream/rc4/rc4.h b/src/lib/stream/rc4/rc4.h index 60c9450b4..9c4b2717c 100644 --- a/src/lib/stream/rc4/rc4.h +++ b/src/lib/stream/rc4/rc4.h @@ -44,12 +44,11 @@ class BOTAN_DLL RC4 : public StreamCipher void generate(); const size_t SKIP; - - byte X, Y; + byte X = 0; + byte Y = 0; secure_vector<byte> state; - secure_vector<byte> buffer; - size_t position; + size_t position = 0; }; } |