diff --git a/stepmania/src/crypto51/asn.cpp b/stepmania/src/crypto51/asn.cpp index 262a430406..e884e9e8b1 100644 --- a/stepmania/src/crypto51/asn.cpp +++ b/stepmania/src/crypto51/asn.cpp @@ -88,7 +88,7 @@ void BERDecodeNull(BufferedTransformation &in) byte b; if (!in.Get(b) || b != TAG_NULL) BERDecodeError(); - unsigned int length; + unsigned int length = 0; if (!BERLengthDecode(in, length) || length != 0) BERDecodeError(); } @@ -113,7 +113,7 @@ unsigned int BERDecodeOctetString(BufferedTransformation &bt, SecByteBlock &str) if (!bt.Get(b) || b != OCTET_STRING) BERDecodeError(); - unsigned int bc; + unsigned int bc = 0; if (!BERLengthDecode(bt, bc)) BERDecodeError(); @@ -129,7 +129,7 @@ unsigned int BERDecodeOctetString(BufferedTransformation &bt, BufferedTransforma if (!bt.Get(b) || b != OCTET_STRING) BERDecodeError(); - unsigned int bc; + unsigned int bc = 0; if (!BERLengthDecode(bt, bc)) BERDecodeError(); @@ -151,7 +151,7 @@ unsigned int BERDecodeTextString(BufferedTransformation &bt, std::string &str, b if (!bt.Get(b) || b != asnTag) BERDecodeError(); - unsigned int bc; + unsigned int bc = 0; if (!BERLengthDecode(bt, bc)) BERDecodeError(); @@ -178,7 +178,7 @@ unsigned int BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, u if (!bt.Get(b) || b != BIT_STRING) BERDecodeError(); - unsigned int bc; + unsigned int bc = 0; if (!BERLengthDecode(bt, bc)) BERDecodeError(); @@ -234,7 +234,7 @@ void OID::BERDecode(BufferedTransformation &bt) if (!bt.Get(b) || b != OBJECT_IDENTIFIER) BERDecodeError(); - unsigned int length; + unsigned int length = 0; if (!BERLengthDecode(bt, length) || length < 1) BERDecodeError(); diff --git a/stepmania/src/crypto51/asn.h b/stepmania/src/crypto51/asn.h index 6442846ddb..8e96d3eb93 100644 --- a/stepmania/src/crypto51/asn.h +++ b/stepmania/src/crypto51/asn.h @@ -307,7 +307,7 @@ void BERDecodeUnsigned(BufferedTransformation &in, T &w, byte asnTag = INTEGER, if (!in.Get(b) || b != asnTag) BERDecodeError(); - unsigned int bc; + unsigned int bc = 0; BERLengthDecode(in, bc); SecByteBlock buf(bc); diff --git a/stepmania/src/crypto51/cryptlib.h b/stepmania/src/crypto51/cryptlib.h index 75209aceb7..dd30f6432f 100644 --- a/stepmania/src/crypto51/cryptlib.h +++ b/stepmania/src/crypto51/cryptlib.h @@ -280,7 +280,7 @@ public: } //! to be implemented by derived classes, users should use one of the above functions instead - virtual bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const {sm_crash();}; + virtual bool GetVoidValue(const char *name, const std::type_info &valueType, void *pValue) const { sm_crash(); } }; //! namespace containing value name definitions diff --git a/stepmania/src/pcre/pcre.c b/stepmania/src/pcre/pcre.c index bc2b519b08..48da79a794 100644 --- a/stepmania/src/pcre/pcre.c +++ b/stepmania/src/pcre/pcre.c @@ -4197,7 +4197,7 @@ pattern. We can't be so clever for #-comments. */ ptr = (const uschar *)(pattern - 1); while ((c = *(++ptr)) != 0) { - int min, max; + int min = 0, max = 0; int class_optcount; int bracket_length; int duplength;