summaryrefslogtreecommitdiff
path: root/test.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2016-04-28 05:35:14 -0400
committerJeffrey Walton <noloader@gmail.com>2016-04-28 05:35:14 -0400
commita49a95de550c05874e718e217c0e2f040dfaba4c (patch)
tree548ef89eb1f2b99bdc091914c091e090993f707c /test.cpp
parentc32d4a850582de6d7dbbf05c8fcee14801bd54b3 (diff)
downloadcryptopp-git-a49a95de550c05874e718e217c0e2f040dfaba4c.tar.gz
Cleared Visual Studio warning for uninitialized variables
Diffstat (limited to 'test.cpp')
-rw-r--r--test.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/test.cpp b/test.cpp
index 88d73438..a920db7d 100644
--- a/test.cpp
+++ b/test.cpp
@@ -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);