1
0
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:
Volker Lendecke 2022-01-16 20:14:56 +01:00 committed by Jeremy Allison
parent 4d5c1509be
commit ac12207e15

View File

@ -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;