summaryrefslogtreecommitdiff
path: root/asn.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2015-07-19 11:05:48 -0400
committerJeffrey Walton <noloader@gmail.com>2015-07-19 11:05:48 -0400
commitd04b813e8b078e717992b86b8b6103db0bd2cec3 (patch)
tree3fe613a3d2c40ef30f6fdc887006ed7b8d05e890 /asn.cpp
parente874cd2ef8cf038627e14a59ae47b4034c7c18c1 (diff)
downloadcryptopp-git-d04b813e8b078e717992b86b8b6103db0bd2cec3.tar.gz
Cleared -Wmaybe-uninitialized under GCC 5.1
Diffstat (limited to 'asn.cpp')
-rw-r--r--asn.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/asn.cpp b/asn.cpp
index 9a0c257b..3f88582c 100644
--- a/asn.cpp
+++ b/asn.cpp
@@ -74,7 +74,9 @@ bool BERLengthDecode(BufferedTransformation &bt, lword &length, bool &definiteLe
bool BERLengthDecode(BufferedTransformation &bt, size_t &length)
{
- lword lw;
+ // Initialize to silence warning from diagnostic tools
+ lword lw = 0;
+
bool definiteLength;
if (!BERLengthDecode(bt, lw, definiteLength))
BERDecodeError();