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:
Denis Kenzior 2009-06-01 13:56:50 -05:00
parent d0a569b9c0
commit 05588ca59e
1 changed files with 2 additions and 1 deletions

View File

@ -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];