From ac12207e15c5483ef4a423221a1d7c104a4b9672 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 16 Jan 2022 20:14:56 +0100 Subject: [PATCH] libsmb: Avoid a cast Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- source3/libsmb/libsmb_xattr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source3/libsmb/libsmb_xattr.c b/source3/libsmb/libsmb_xattr.c index c53093d8ff7..d66ea63617c 100644 --- a/source3/libsmb/libsmb_xattr.c +++ b/source3/libsmb/libsmb_xattr.c @@ -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;