diff options
author | Adam Langley <agl@google.com> | 2015-06-05 22:25:51 +0300 |
---|---|---|
committer | Adam Langley <agl@google.com> | 2015-06-05 22:25:51 +0300 |
commit | dd45e3b2364c49766baa097ab488f54beaee3c13 (patch) | |
tree | 9b6550b9c2f85a6ca48aef226843fa167fe0fc87 /tool | |
parent | 1a3c23234c65f80fdc2629dc18e45b10907d6a88 (diff) |
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
Diffstat (limited to 'tool')
-rw-r--r-- | tool/genrsa.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/genrsa.cc b/tool/genrsa.cc index f5296cee..4b394015 100644 --- a/tool/genrsa.cc +++ b/tool/genrsa.cc @@ -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); |