mirror of git://git.sysmocom.de/ofono
Squash another uninitialized warning
GCC is smart enough to detect that oct is only set if the next_octet function succeeds. However, we've already checked that buf is big enough, so it should always succeed. Still, lets keep gcc happy
This commit is contained in:
parent
d0a569b9c0
commit
05588ca59e
|
@ -454,7 +454,8 @@ static gboolean decode_address(const unsigned char *pdu, int len,
|
|||
unsigned char oct;
|
||||
|
||||
for (i = 0; i < byte_len; i++) {
|
||||
next_octet(pdu, len, offset, &oct);
|
||||
if (!next_octet(pdu, len, offset, &oct))
|
||||
break;
|
||||
|
||||
out->address[i*2] = digit_lut[oct & 0x0f];
|
||||
out->address[i*2+1] = digit_lut[(oct & 0xf0) >> 4];
|
||||
|
|
Loading…
Reference in New Issue