1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-26 14:04:03 +03:00

fuzz-bcd: silence warning about always-true comparison

Occurs with gcc-11.2.1-7.fc35.x86_64.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek 2022-01-04 09:31:25 +01:00 committed by Frantisek Sumsal
parent 1341f25b9b
commit 5377ad4ea4

View File

@ -21,6 +21,7 @@ int LLVMFuzzerTestOneInput(const uint8_t *data, size_t size) {
assert_se(p);
char16_t *title = get_bcd_title(p, size);
assert_se(!title || char16_strlen(title) >= 0);
if (title)
(void) char16_strlen(title);
return 0;
}