diff options
author | Andreas Schneider <asn@samba.org> | 2019-05-08 17:12:12 +0200 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2019-05-17 07:18:31 +0000 |
commit | f8eb314bcda9a9847e86869021acb7337a7d3d1e (patch) | |
tree | cf7f0dc0b54cc4a77d8af3d592452226d2eef225 /source3 | |
parent | c98a190ff8881681de30a7be022afdbb5e854792 (diff) | |
download | samba-f8eb314bcda9a9847e86869021acb7337a7d3d1e.tar.gz |
s3:utils: If share is NULL in smbcacls, don't print it
Found by GCC 9.
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13937
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 2b957bde5a2f0f670ee0c8acde6edae1f4aaf253)
Diffstat (limited to 'source3')
-rw-r--r-- | source3/utils/smbcacls.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/smbcacls.c b/source3/utils/smbcacls.c index 33eb78c41ec..ac287ad6978 100644 --- a/source3/utils/smbcacls.c +++ b/source3/utils/smbcacls.c @@ -908,8 +908,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; } |