No change in behaviour. Minimizes diff in the next commit that introduce a
behaviour change.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15894
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Volker Lendecke <vl@samba.org>
bool file_has_brlocks(files_struct *fsp)
{
- struct byte_range_lock *br_lck;
+ struct byte_range_lock *br_lck = NULL;
br_lck = brl_get_locks_readonly(fsp);
- if (!br_lck)
+ if (br_lck == NULL) {
return false;
+ }
return (brl_num_locks(br_lck) > 0);
}