Possible Windows build fix.

This just tries to convince MSVC that we're not going to use |nprimes|
without initialising it first:

tool\genrsa.cc(63) : warning C4701: potentially uninitialized local
variable 'nprimes' used

Change-Id: If8a68ad4fe2c2fb7a8073b7ba43d540467ddf8f8
This commit is contained in:
Adam Langley 2015-06-05 12:25:51 -07:00
parent 1a3c23234c
commit dd45e3b236

View File

@ -44,7 +44,7 @@ bool GenerateRSAKey(const std::vector<std::string> &args) {
return false;
}
unsigned bits, nprimes;
unsigned bits, nprimes = 0;
if (!GetUnsigned(&bits, "-bits", 2048, args_map) ||
!GetUnsigned(&nprimes, "-nprimes", 2, args_map)) {
PrintUsage(kArguments);