Cleared Visual Studio warning for uninitialized variables

pull/131/head
Jeffrey Walton 2016-04-28 05:35:14 -04:00
parent c32d4a8505
commit a49a95de55
1 changed files with 2 additions and 2 deletions

View File

@ -641,7 +641,7 @@ void SecretShareFile(int threshold, int nShares, const char *filename, const cha
RandomPool rng; RandomPool rng;
rng.IncorporateEntropy((byte *)seed, strlen(seed)); rng.IncorporateEntropy((byte *)seed, strlen(seed));
ChannelSwitch *channelSwitch; ChannelSwitch *channelSwitch = NULL;
FileSource source(filename, false, new SecretSharing(rng, threshold, nShares, channelSwitch = new ChannelSwitch)); FileSource source(filename, false, new SecretSharing(rng, threshold, nShares, channelSwitch = new ChannelSwitch));
vector_member_ptrs<FileSink> fileSinks(nShares); vector_member_ptrs<FileSink> fileSinks(nShares);
@ -695,7 +695,7 @@ void InformationDisperseFile(int threshold, int nShares, const char *filename)
if (threshold < 1 || threshold > 1000) if (threshold < 1 || threshold > 1000)
throw InvalidArgument("InformationDisperseFile: " + IntToString(nShares) + " is not in range [1, 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)); FileSource source(filename, false, new InformationDispersal(threshold, nShares, channelSwitch = new ChannelSwitch));
vector_member_ptrs<FileSink> fileSinks(nShares); vector_member_ptrs<FileSink> fileSinks(nShares);