]> git.ipfire.org Git - thirdparty/bird.git/commit
String tests: fixed too strict strcmp checks
authorMaria Matejka <mq@ucw.cz>
Wed, 27 Nov 2024 11:01:58 +0000 (12:01 +0100)
committerMaria Matejka <mq@ucw.cz>
Wed, 27 Nov 2024 11:01:58 +0000 (12:01 +0100)
commit54499f8850fd5b3a25639dc06d5618ae98ac1537
tree9bbc60bd468c03346114685e15fec1b7ac0795f4
parentfc2b4b26a62215d12f4565c21b77e949cd861b9a
String tests: fixed too strict strcmp checks

The strcmp function is not guaranteed to return -1 or +1
but any negative or positive value if the input strings
are different. Fixed the false assumption which triggered
a build bug on emulated arm64.
lib/printf_test.c