s3/lib/dbwrap: clang: Fix 'Access to field results in a deref of a null'
authorNoel Power <noel.power@suse.com>
Tue, 9 Jul 2019 14:42:46 +0000 (14:42 +0000)
committerGary Lockyer <gary@samba.org>
Wed, 24 Jul 2019 21:33:20 +0000 (21:33 +0000)
commit637cd1a6c4175c527caa144767f3543156c66ed5
tree0b537538eb0b2e8f38ff3f27f1e88eb7d504353b
parent6858c83dc625ab2d4c02c702f8f5351805df0ae1
s3/lib/dbwrap: clang: Fix 'Access to field results in a deref of a null'

Fixes:

source3/lib/dbwrap/dbwrap_ctdb.c:530:39: warning: Access to field 'm_write' results in a dereference of a null pointer (loaded from field 'transaction') <--[clang]
        if (pull_newest_from_marshall_buffer(ctx->transaction->m_write, key,

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
source3/lib/dbwrap/dbwrap_ctdb.c