path: root/tests/bits
diff options
authorVadim Yanitskiy <axilirator@gmail.com>2020-02-19 04:20:08 +0700
committerVadim Yanitskiy <axilirator@gmail.com>2020-02-19 18:23:40 +0700
commit832d8b8633915bb8eef66ade43b2780f0ca04842 (patch)
tree61800270d1486ef4a965c3b24fd434629c037594 /tests/bits
parent6e270e2530fc095c7fe96296aa0d0fd6c0c64796 (diff)
bitvec: fix bitvec_unhex(): do not return 1 on successHEADmaster
This function is supposed to return 0 on success or 1 in case of error. However, it used to return 1 even in case of success. The reason is that length of the input string was not taken into account and sscanf() was failing on '\0'. Let's use osmo_hexparse() and rely on its return value. P.S. Funny that the unit test expectations were wrong too. Change-Id: I441a22c7964bb31688071d8bcf6a282d8c0187ff
Diffstat (limited to 'tests/bits')
0 files changed, 0 insertions, 0 deletions