diff options
| author | Jeffrey Walton <noloader@gmail.com> | 2016-04-28 05:35:14 -0400 |
|---|---|---|
| committer | Jeffrey Walton <noloader@gmail.com> | 2016-04-28 05:35:14 -0400 |
| commit | a49a95de550c05874e718e217c0e2f040dfaba4c (patch) | |
| tree | 548ef89eb1f2b99bdc091914c091e090993f707c /test.cpp | |
| parent | c32d4a850582de6d7dbbf05c8fcee14801bd54b3 (diff) | |
| download | cryptopp-git-a49a95de550c05874e718e217c0e2f040dfaba4c.tar.gz | |
Cleared Visual Studio warning for uninitialized variables
Diffstat (limited to 'test.cpp')
| -rw-r--r-- | test.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -641,7 +641,7 @@ void SecretShareFile(int threshold, int nShares, const char *filename, const cha RandomPool rng;
rng.IncorporateEntropy((byte *)seed, strlen(seed));
- ChannelSwitch *channelSwitch;
+ ChannelSwitch *channelSwitch = NULL;
FileSource source(filename, false, new SecretSharing(rng, threshold, nShares, channelSwitch = new ChannelSwitch));
vector_member_ptrs<FileSink> fileSinks(nShares);
@@ -695,7 +695,7 @@ void InformationDisperseFile(int threshold, int nShares, const char *filename) if (threshold < 1 || threshold > 1000)
throw InvalidArgument("InformationDisperseFile: " + IntToString(nShares) + " is not in range [1, 1000]");
- ChannelSwitch *channelSwitch;
+ ChannelSwitch *channelSwitch = NULL;
FileSource source(filename, false, new InformationDispersal(threshold, nShares, channelSwitch = new ChannelSwitch));
vector_member_ptrs<FileSink> fileSinks(nShares);
|
