]> sigrok.org Git - libsigrok.git/commit
dreamsourcelab-dslogic: avoid division by zero
authorGerhard Sittig <redacted>
Thu, 8 Feb 2018 22:16:40 +0000 (23:16 +0100)
committerUwe Hermann <redacted>
Fri, 9 Feb 2018 20:34:17 +0000 (21:34 +0100)
commit051e4beb79a9afabf5a3e9ca459d45559f0ee217
treeedf3b2b5ea9767ae81b1ff7fab76cc10ee2cf65c
parent8e2fd23acb61f8f7471e40ef7439568022485d25
dreamsourcelab-dslogic: avoid division by zero

Do not align to block_size when its value is zero.

This was reported by clang's scan-build.
src/hardware/dreamsourcelab-dslogic/protocol.c