s3/lib/dwrap: clang: Fix 'Array access results in a null pointer dereference'
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 14:55:48 +0000 (15:55 +0100)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:24 +0000 (22:52 +0000)
commit0ca6d34a69d308ad756f3697f8f44a8e642b27f0
treec09478d9a10cb74cace4c837000eabfbece2349b
parent57e9b358ec836e8d8133242c0f6ce4d896531a40
s3/lib/dwrap: clang: Fix 'Array access results in a null pointer dereference'

Fixes:

source3/lib/dbwrap/dbwrap_watch.c:55:3: warning: Array access (from variable 'wkey') results in a null pointer dereference <--[clang]
                SIVAL(wkey, 0, db_id_len);
                ^
1 warning generated.

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