mirror of git://git.sysmocom.de/ofono
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:
parent
05588ca59e
commit
2271bca985
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue