Initialize the bits[] array to zero.
svn path=/trunk/; revision=42320
This commit is contained in:
parent
5e0e1ceea8
commit
da54d6136c
|
@ -1174,6 +1174,7 @@ calc_xcrc(guint8* data, guint8 length)
|
|||
guint8 next;
|
||||
int y, x;
|
||||
|
||||
memset(bits, 0, sizeof(bits));
|
||||
for(y=0;y<=length-4;y++)
|
||||
{
|
||||
dect_setbit(bits, y, dect_getbit(data, y+48*(1+(int)(y/16))));
|
||||
|
|
Loading…
Reference in New Issue