]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
vfs_fruit: Slightly simplify readdir_attr_meta_finderi_stream()
authorVolker Lendecke <vl@samba.org>
Mon, 29 Sep 2025 11:38:55 +0000 (13:38 +0200)
committerVolker Lendecke <vl@samba.org>
Wed, 8 Oct 2025 08:01:30 +0000 (08:01 +0000)
"&buf[0]" is equivalent to just "buf" in this case

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/modules/vfs_fruit.c

index b274274d46c92bd22c0964248497b183c42d96a9..b997d810a80228c2767c7cf182ba918a4696a637 100644 (file)
@@ -1001,7 +1001,7 @@ static bool readdir_attr_meta_finderi_stream(
                return false;
        }
 
-       nread = SMB_VFS_PREAD(fsp, &buf[0], AFP_INFO_SIZE, 0);
+       nread = SMB_VFS_PREAD(fsp, buf, sizeof(buf), 0);
        if (nread != AFP_INFO_SIZE) {
                DBG_ERR("short read [%s] [%zd/%d]\n",
                        smb_fname_str_dbg(stream_name), nread, AFP_INFO_SIZE);