s3/libsmb: clang: Fix 'the left operand of '-' is a garbage value'
authorNoel Power <noel.power@suse.com>
Tue, 13 Aug 2019 14:57:22 +0000 (15:57 +0100)
committerRalph Boehme <slow@samba.org>
Tue, 22 Oct 2019 18:48:43 +0000 (18:48 +0000)
commit6ebd0ba735e6fdddc4d7ded57879d85a42aabf05
treeeee074e2c9861ec6c7005fb726c7e60dd68bd8e8
parent4ef40d41f606f631411991101ed826733a74a8b7
s3/libsmb: clang: Fix 'the left operand of '-' is a garbage value'

Fixes:

source3/libsmb/clifile.c:360:19: warning: The left operand of '-' is a garbage value <--[clang]
        if (data[num_data-1] != '\0') {
                 ~~~~~~~~^
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Ralph Boehme <slow@samba.org>
Autobuild-User(master): Ralph Böhme <slow@samba.org>
Autobuild-Date(master): Tue Oct 22 18:48:43 UTC 2019 on sn-devel-184
source3/libsmb/clifile.c