s3/lib: clang: Fix 'access to field results in a deref of a null pointer'
commit3913b9a4088b83d6ed7f94d136a26ecfa7e16b35
authorNoel Power <noel.power@suse.com>
Tue, 9 Jul 2019 16:07:09 +0000 (9 16:07 +0000)
committerGary Lockyer <gary@samba.org>
Wed, 24 Jul 2019 22:50:27 +0000 (24 22:50 +0000)
treec89dac095e5514d7f535d274a67dd74d93b3b42a
parent81f8cbfba358b61e7b394887d23f751691eb8388
s3/lib: clang: Fix 'access to field results in a deref of a null pointer'

Fixes:

source3/lib/ctdbd_conn.c:1953:6: warning: Access to field 'operation' results in a dereference of a null pointer (loaded from variable 'hdr') <--[clang]
        if (hdr->operation != CTDB_REPLY_CALL) {
            ^~~

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
Autobuild-User(master): Gary Lockyer <gary@samba.org>
Autobuild-Date(master): Wed Jul 24 22:50:27 UTC 2019 on sn-devel-184
source3/lib/ctdbd_conn.c