mirror of
https://github.com/samba-team/samba.git
synced 2025-03-12 20:58:37 +03:00
vfs_fruit: Use ARRAY_DEL_ELEMENT() in del_fruit_stream()
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
This commit is contained in:
parent
85cb86d7c6
commit
356fdb0b65
@ -404,11 +404,7 @@ static bool del_fruit_stream(TALLOC_CTX *mem_ctx, unsigned int *num_streams,
|
||||
}
|
||||
|
||||
TALLOC_FREE(tmp[i].name);
|
||||
if (*num_streams - 1 > i) {
|
||||
memmove(&tmp[i], &tmp[i+1],
|
||||
(*num_streams - i - 1) * sizeof(struct stream_struct));
|
||||
}
|
||||
|
||||
ARRAY_DEL_ELEMENT(tmp, i, *num_streams);
|
||||
*num_streams -= 1;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user