mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
tests: Resolve scan-build false positive by adding extra assertion
This commit is contained in:
parent
6bbb0b8e42
commit
309dca417c
1 changed files with 1 additions and 0 deletions
|
|
@ -99,6 +99,7 @@ add_name(struct dlz_example_data *state, struct record *list,
|
|||
int first_empty = -1;
|
||||
|
||||
for (i = 0; i < MAX_RECORDS; i++) {
|
||||
INSIST(list[i].name != NULL);
|
||||
if (first_empty == -1 && strlen(list[i].name) == 0U) {
|
||||
first_empty = i;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue