mirror of
https://github.com/samba-team/samba.git
synced 2025-01-08 21:18:16 +03:00
mdssvc: Slightly simplify dalloc_size()
talloc_get_size() and thus talloc_array_length() deals fine with a NULL pointer Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
a61ed4df0e
commit
dfc870b6cd
@ -79,11 +79,6 @@ size_t dalloc_size(const DALLOC_CTX *d)
|
||||
if (d == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
if (d->dd_talloc_array == NULL) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
return talloc_array_length(d->dd_talloc_array);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user