Squash another uninitialized warning

GCC detects that next_octet only sets oct if successful.  However,
we've already checked the length, so it should always succeed.
This commit is contained in:
Denis Kenzior 2009-06-01 13:57:47 -05:00
parent 05588ca59e
commit 2271bca985
1 changed files with 1 additions and 1 deletions

View File

@ -229,7 +229,7 @@ static gboolean encode_scts(const struct sms_scts *in, unsigned char *pdu,
static gboolean decode_scts(const unsigned char *pdu, int len,
int *offset, struct sms_scts *out)
{
unsigned char oct;
unsigned char oct = 0;
if ((len - *offset) < 7)
return FALSE;