Changes to make the Solaris C compiler happy.
authorJeremy Allison <jra@samba.org>
Thu, 16 Mar 2017 16:17:51 +0000 (09:17 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 16 Mar 2017 19:30:19 +0000 (20:30 +0100)
Fix Bug 12693 dbwrap_watch.c syntax error before or at: }

BUG: https://bugzilla.samba.org/show_bug.cgi?id=12693

Signed-off-by: Tom schulz <schulz@adi.com>
Reviewed-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/lib/dbwrap/dbwrap_watch.c

index 842ab861455d7b1a6f35a361ee7a64a9415d84db..efff478564102c46ae796ea034a2c530805a923a 100644 (file)
@@ -279,7 +279,7 @@ static struct db_record *dbwrap_watched_fetch_locked(
        num_watchers = dbwrap_watched_parse(subrec_value, NULL, 0, NULL, NULL);
        if (num_watchers == -1) {
                /* Fresh or invalid record */
-               rec->value = (TDB_DATA) {};
+               rec->value = (TDB_DATA) { 0 };
                return rec;
        }