diff options
-rw-r--r-- | source3/utils/smbcontrol.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c index 9af0f3e251..3946c08038 100644 --- a/source3/utils/smbcontrol.c +++ b/source3/utils/smbcontrol.c @@ -1093,14 +1093,10 @@ static bool do_winbind_offline(struct tevent_context *ev_ctx, 5 times. */ for (retry = 0; retry < 5; retry++) { - TDB_DATA d; uint8 buf[4]; - - ZERO_STRUCT(d); + TDB_DATA d = { .dptr = buf, .dsize = sizeof(buf) }; SIVAL(buf, 0, time(NULL)); - d.dptr = buf; - d.dsize = 4; tdb_store_bystring(tdb, "WINBINDD_OFFLINE", d, TDB_INSERT); |