Fix warnings about use of possibly uninitialized variables.
This commit is contained in:
@@ -88,7 +88,7 @@ void BERDecodeNull(BufferedTransformation &in)
|
|||||||
byte b;
|
byte b;
|
||||||
if (!in.Get(b) || b != TAG_NULL)
|
if (!in.Get(b) || b != TAG_NULL)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
unsigned int length;
|
unsigned int length = 0;
|
||||||
if (!BERLengthDecode(in, length) || length != 0)
|
if (!BERLengthDecode(in, length) || length != 0)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
}
|
}
|
||||||
@@ -113,7 +113,7 @@ unsigned int BERDecodeOctetString(BufferedTransformation &bt, SecByteBlock &str)
|
|||||||
if (!bt.Get(b) || b != OCTET_STRING)
|
if (!bt.Get(b) || b != OCTET_STRING)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int bc;
|
unsigned int bc = 0;
|
||||||
if (!BERLengthDecode(bt, bc))
|
if (!BERLengthDecode(bt, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
@@ -129,7 +129,7 @@ unsigned int BERDecodeOctetString(BufferedTransformation &bt, BufferedTransforma
|
|||||||
if (!bt.Get(b) || b != OCTET_STRING)
|
if (!bt.Get(b) || b != OCTET_STRING)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int bc;
|
unsigned int bc = 0;
|
||||||
if (!BERLengthDecode(bt, bc))
|
if (!BERLengthDecode(bt, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
@@ -151,7 +151,7 @@ unsigned int BERDecodeTextString(BufferedTransformation &bt, std::string &str, b
|
|||||||
if (!bt.Get(b) || b != asnTag)
|
if (!bt.Get(b) || b != asnTag)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int bc;
|
unsigned int bc = 0;
|
||||||
if (!BERLengthDecode(bt, bc))
|
if (!BERLengthDecode(bt, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
@@ -178,7 +178,7 @@ unsigned int BERDecodeBitString(BufferedTransformation &bt, SecByteBlock &str, u
|
|||||||
if (!bt.Get(b) || b != BIT_STRING)
|
if (!bt.Get(b) || b != BIT_STRING)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int bc;
|
unsigned int bc = 0;
|
||||||
if (!BERLengthDecode(bt, bc))
|
if (!BERLengthDecode(bt, bc))
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
@@ -234,7 +234,7 @@ void OID::BERDecode(BufferedTransformation &bt)
|
|||||||
if (!bt.Get(b) || b != OBJECT_IDENTIFIER)
|
if (!bt.Get(b) || b != OBJECT_IDENTIFIER)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int length;
|
unsigned int length = 0;
|
||||||
if (!BERLengthDecode(bt, length) || length < 1)
|
if (!BERLengthDecode(bt, length) || length < 1)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
|
|||||||
@@ -307,7 +307,7 @@ void BERDecodeUnsigned(BufferedTransformation &in, T &w, byte asnTag = INTEGER,
|
|||||||
if (!in.Get(b) || b != asnTag)
|
if (!in.Get(b) || b != asnTag)
|
||||||
BERDecodeError();
|
BERDecodeError();
|
||||||
|
|
||||||
unsigned int bc;
|
unsigned int bc = 0;
|
||||||
BERLengthDecode(in, bc);
|
BERLengthDecode(in, bc);
|
||||||
|
|
||||||
SecByteBlock buf(bc);
|
SecByteBlock buf(bc);
|
||||||
|
|||||||
@@ -280,7 +280,7 @@ public:
|
|||||||
}
|
}
|
||||||
|
|
||||||
//! to be implemented by derived classes, users should use one of the above functions instead
|
//! 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
|
//! namespace containing value name definitions
|
||||||
|
|||||||
@@ -4197,7 +4197,7 @@ pattern. We can't be so clever for #-comments. */
|
|||||||
ptr = (const uschar *)(pattern - 1);
|
ptr = (const uschar *)(pattern - 1);
|
||||||
while ((c = *(++ptr)) != 0)
|
while ((c = *(++ptr)) != 0)
|
||||||
{
|
{
|
||||||
int min, max;
|
int min = 0, max = 0;
|
||||||
int class_optcount;
|
int class_optcount;
|
||||||
int bracket_length;
|
int bracket_length;
|
||||||
int duplength;
|
int duplength;
|
||||||
|
|||||||
Reference in New Issue
Block a user