1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

s3/lib: clang: Fix 'passed-by-value struct argument contains uninit-ed data'

Fixed:

g_lock.c:358:21: warning: Passed-by-value struct argument contains uninitialized data (e.g., field: 'pid') <--[clang]
        state->watch_req = dbwrap_watched_watch_send(
                           ^
1 warning generated.

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
This commit is contained in:
Noel Power 2019-07-10 11:22:43 +00:00 committed by Gary Lockyer
parent 6ea9c795b1
commit e3e9330609

View File

@ -347,7 +347,7 @@ struct g_lock_lock_fn_state {
static void g_lock_lock_fn(struct db_record *rec, void *private_data)
{
struct g_lock_lock_fn_state *state = private_data;
struct server_id blocker;
struct server_id blocker = {0};
state->status = g_lock_trylock(rec, state->self, state->state->type,
&blocker);