clang: Fix Null pointer passed as argument warning
authorNoel Power <noel.power@suse.com>
Thu, 13 Jun 2019 13:39:22 +0000 (13:39 +0000)
committerNoel Power <npower@samba.org>
Wed, 26 Jun 2019 10:30:23 +0000 (10:30 +0000)
commitcf43f1d052a44bea08bef09ea5eace77143c8093
treea8832555d69a512d67ff483eefbe1192de15ba8d
parent7987e4af96b1c2b285834a9d3a9c00b028039737
clang: Fix Null pointer passed as argument warning

Fixes:
lib/tdb/common/transaction.c:354:2: warning: Null pointer passed as an argument to a 'nonnull' parameter <--[clang]
        memcpy(tdb->transaction->blocks[blk] + off, buf, len);
&

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