mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
brlock: Use 0 instead of empty initializer list
C does not allow empty initializer lists. Although gcc accepts that, the SunOS compiler fails in this case with an error. BUG: https://bugzilla.samba.org/show_bug.cgi?id=11153 Signed-off-by: Christof Schmitt <cs@samba.org> Reviewed-by: Michael Adam <obnox@samba.org> Autobuild-User(master): Christof Schmitt <cs@samba.org> Autobuild-Date(master): Thu Mar 12 02:49:36 CET 2015 on sn-devel-104
This commit is contained in:
parent
9643a4b1ef
commit
ddcf3614ce
@ -2014,7 +2014,7 @@ static void brl_get_locks_readonly_parser(TDB_DATA key, TDB_DATA data,
|
||||
*state->br_lock = NULL;
|
||||
return;
|
||||
}
|
||||
*br_lck = (struct byte_range_lock) {};
|
||||
*br_lck = (struct byte_range_lock) { 0 };
|
||||
if (!brl_parse_data(br_lck, data)) {
|
||||
*state->br_lock = NULL;
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user