mirror of https://gerrit.osmocom.org/libosmocore
832d8b8633
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 |
||
---|---|---|
.. | ||
bitvec_test.c | ||
bitvec_test.ok |