summaryrefslogtreecommitdiff
path: root/source3/utils
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2019-05-08 17:12:12 +0200
committerJeremy Allison <jra@samba.org>2019-05-08 16:33:24 +0000
commit2b957bde5a2f0f670ee0c8acde6edae1f4aaf253 (patch)
treeb6074c7df1431fbf607b70f9754f03feb068b4d5 /source3/utils
parent3653dc7013518d90e6deb08a1f21d7472dc86675 (diff)
downloadsamba-2b957bde5a2f0f670ee0c8acde6edae1f4aaf253.tar.gz
s3:utils: If share is NULL in smbcacls, don't print it
Found by GCC 9. Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcacls.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c
index b61d11df860..084df9f9a4a 100644
--- a/source3/utils/smbcacls.c
+++ b/source3/utils/smbcacls.c
@@ -1050,8 +1050,8 @@ int main(int argc, char *argv[])
return -1;
}
share = strchr_m(server,'\\');
- if (!share) {
- printf("Invalid argument: %s\n", share);
+ if (share == NULL) {
+ printf("Invalid argument\n");
return -1;
}