X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=src%2Finput%2Fbinary.c;h=813cf4a46e8be054d8ee0f42fc8dc0aca360191c;hb=6508992d04bf972ae98b8c7e97201c5164501687;hp=5862e36e24799d473357dde7f02670d029e1b4cb;hpb=7066fd466038bb4a8d09751f8a53c2452c5fefc1;p=libsigrok.git diff --git a/src/input/binary.c b/src/input/binary.c index 5862e36e..813cf4a4 100644 --- a/src/input/binary.c +++ b/src/input/binary.c @@ -97,7 +97,6 @@ static int process_buffer(struct sr_input *in) /* Cut off at multiple of unitsize. */ chunk_size = in->buf->len / logic.unitsize * logic.unitsize; - chunk = 0; for (i = 0; i < chunk_size; i += chunk) { logic.data = in->buf->str + i; chunk = MIN(MAX_CHUNK_SIZE, chunk_size - i);