]> sigrok.org Git - libsigrok.git/commit
input: vcd: avoid needless copying
authorWolfram Sang <redacted>
Sat, 9 Jan 2016 07:17:57 +0000 (08:17 +0100)
committerUwe Hermann <redacted>
Thu, 28 Jan 2016 18:03:53 +0000 (19:03 +0100)
commita66175c2b1e11c961329aa2634fa9de7f3a45d5a
treece3308fae3ba207e5ae9a46eaf53ad43d3317dd3
parent76bc28c3f1cbd88f01eda7251e9f4f1d88c506f2
input: vcd: avoid needless copying

Current code moves the identifier string one byte to the front to
overwrite the bit value, so 'tokens[i]' is a string to compare against
the desired value. This copying is unnecessary, just pass a properly
setup pointer.

Signed-off-by: Wolfram Sang <redacted>
src/input/vcd.c