summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorChristof Schmitt <cs@samba.org>2015-03-11 15:54:55 -0700
committerChristof Schmitt <cs@samba.org>2015-03-12 02:49:36 +0100
commitddcf3614ce14e7cb03195e36f872043542bc4ec1 (patch)
tree2a4b084f9b40f58dc694638c71b779fcad3dd9bb /source3
parent9643a4b1ef2ada764f454ecc82aa6936217967fc (diff)
downloadsamba-ddcf3614ce14e7cb03195e36f872043542bc4ec1.tar.gz
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
Diffstat (limited to 'source3')
-rw-r--r--source3/locking/brlock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/locking/brlock.c b/source3/locking/brlock.c
index 7fd3783cb86..46401a02186 100644
--- a/source3/locking/brlock.c
+++ b/source3/locking/brlock.c
@@ -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;