libcli/smb: clang: Fix 'array access results in a null pointer deref'
authorNoel Power <noel.power@suse.com>
Wed, 10 Jul 2019 10:22:49 +0000 (10:22 +0000)
committerGary Lockyer <gary@samba.org>
Tue, 16 Jul 2019 22:52:24 +0000 (22:52 +0000)
commit7a86c99ccb6912effdbb0ffbdc5c66eccf8c1aa2
treeac9cc8d92e0e0c1f0ec9f101035c7176f444f357
parent7b8ec24ccfb06c1d499bf500183c0dc24de553a0
libcli/smb: clang: Fix 'array access results in a null pointer deref'

Fixes:

smbXcli_base.c:1239:9: warning: Array access (via field 'pending') results in a null pointer dereference <--[clang]
                req = conn->pending[0];
                      ^

Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Gary Lockyer <gary@catalyst.net.nz>
libcli/smb/smbXcli_base.c