Initialize the bits[] array to zero.

svn path=/trunk/; revision=42320
This commit is contained in:
Chris Maynard 2012-04-28 17:42:23 +00:00
parent 5e0e1ceea8
commit da54d6136c
1 changed files with 1 additions and 0 deletions

View File

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