brlock: Use 0 instead of empty initializer list
authorChristof Schmitt <cs@samba.org>
Wed, 11 Mar 2015 22:54:55 +0000 (15:54 -0700)
committerChristof Schmitt <cs@samba.org>
Thu, 12 Mar 2015 01:49:36 +0000 (02:49 +0100)
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

source3/locking/brlock.c

index 7fd3783cb869ea4264a652a77b1fd42af2d756cc..46401a021865a0365b6404de767e8b5da1de049c 100644 (file)
@@ -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;