mirror of
https://github.com/morgan9e/systemd
synced 2026-04-14 00:14:32 +09:00
fuzz-bcd: silence warning about always-true comparison
Occurs with gcc-11.2.1-7.fc35.x86_64.
This commit is contained in:
committed by
Frantisek Sumsal
parent
1341f25b9b
commit
5377ad4ea4
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user