]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s4:torture: Fix comparison between pointer and zero character constant
authorAndreas Schneider <asn@samba.org>
Thu, 1 Jun 2017 12:28:08 +0000 (14:28 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 1 Jun 2017 21:42:58 +0000 (23:42 +0200)
Fixes building with GCC 7.1

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Thu Jun  1 23:42:58 CEST 2017 on sn-devel-144

source4/torture/masktest.c

index 9c5906fc7c6ec76be5b6d6e7d482ebb19a883642..9a047e2b70809b05348af79f92cbcb374d58ba21 100644 (file)
@@ -160,7 +160,7 @@ static void get_real_name(TALLOC_CTX *mem_ctx, struct smbcli_state *cli,
                *long_name = strlower_talloc(mem_ctx, last_hit.long_name);
        }
 
-       if (*short_name == '\0') {
+       if (*short_name[0] == '\0') {
                *short_name = talloc_strdup(mem_ctx, *long_name);
        }
 }