summaryrefslogtreecommitdiff
path: root/source4/torture/masktest.c
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2017-06-01 14:28:08 +0200
committerJeremy Allison <jra@samba.org>2017-06-01 23:42:58 +0200
commit1f4b07e5942235bddcfa999b3575f719752d81c4 (patch)
tree593d7a6f3812ad19a774f726b8c236d5f9d26764 /source4/torture/masktest.c
parent1670d00be88108a483f04c9763012504499b99e4 (diff)
downloadsamba-1f4b07e5942235bddcfa999b3575f719752d81c4.tar.gz
s4:torture: Fix comparison between pointer and zero character constant
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
Diffstat (limited to 'source4/torture/masktest.c')
-rw-r--r--source4/torture/masktest.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/masktest.c b/source4/torture/masktest.c
index 9c5906fc7c6..9a047e2b708 100644
--- a/source4/torture/masktest.c
+++ b/source4/torture/masktest.c
@@ -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);
}
}