lib/tdb: clang: Fix warning: Dereference of null pointer
authorNoel Power <noel.power@suse.com>
Wed, 12 Jun 2019 14:55:43 +0000 (14:55 +0000)
committerNoel Power <npower@samba.org>
Wed, 26 Jun 2019 10:30:23 +0000 (10:30 +0000)
commit7987e4af96b1c2b285834a9d3a9c00b028039737
tree10dfc824ad57bfe5d63ec771c502e3e88f2bfd87
parente28365c515733bab10e93ba40c6123a57bef737f
lib/tdb: clang: Fix warning: Dereference of null pointer

Fixes:

lib/tdb/common/lock.c:933:6: warning: Dereference of null pointer <--[clang]
        if (tdb->allrecord_lock.count) {
            ^~~~~~~~~~~~~~~~~~~~~~~~~

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