mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
libsmb: Avoid a cast
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
This commit is contained in:
parent
4d5c1509be
commit
ac12207e15
@ -2077,7 +2077,7 @@ SMBC_getxattr_ctx(SMBCCTX *context,
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (!user || user[0] == (char)0) {
|
||||
if (!user || user[0] == '\0') {
|
||||
user = talloc_strdup(frame, smbc_getUser(context));
|
||||
if (!user) {
|
||||
errno = ENOMEM;
|
||||
|
Loading…
Reference in New Issue
Block a user