git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e333425
)
s3:utils: If share is NULL in smbcquotas, don't print it
author
Andreas Schneider
<asn@samba.org>
Wed, 8 May 2019 15:11:13 +0000
(17:11 +0200)
committer
Jeremy Allison
<jra@samba.org>
Wed, 8 May 2019 16:33:24 +0000
(16:33 +0000)
Found by GCC 9.
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/utils/smbcquotas.c
patch
|
blob
|
history
diff --git
a/source3/utils/smbcquotas.c
b/source3/utils/smbcquotas.c
index 3f2fc7b37a1facac99522e083d38ea3cef70e2d1..17d16b1cba5d832dcae1346490942263a4aacfae 100644
(file)
--- a/
source3/utils/smbcquotas.c
+++ b/
source3/utils/smbcquotas.c
@@
-770,8
+770,8
@@
int main(int argc, char *argv[])
exit(EXIT_PARSE_ERROR);
}
share = strchr_m(server,'\\');
- if (
!share
) {
- printf("Invalid argument
: %s\n", share
);
+ if (
share == NULL
) {
+ printf("Invalid argument
\n"
);
exit(EXIT_PARSE_ERROR);
}