An edited version of a patch From: Christof Schmitt Date: Sun, 8 Mar 2015 22:18:54 -0500 Subject: [PATCH] Use 0 instead of empty initializer list C does not allow empty initializer lists. Although gcc accepts that, the SunOS compiler fails with an error. The full patch was Signed-off-by: Christof Schmitt --- source3/locking/brlock.c | 2 +- diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c index 7d4d838..1a468d0 100644 --- a/source3/locking/brlock.c +++ b/source3/locking/brlock.c @@ -2005,7 +2005,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; --