1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-27 14:04:05 +03:00

vfs_fruit: Fix CID 1273290 Uninitialized scalar variable

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>

Autobuild-User(master): Volker Lendecke <vl@samba.org>
Autobuild-Date(master): Fri Mar  6 23:56:36 CET 2015 on sn-devel-104
This commit is contained in:
Volker Lendecke 2015-03-06 09:59:25 +00:00
parent 5b3c71cd9c
commit 91ff65b2f6

View File

@ -835,7 +835,8 @@ static ssize_t ad_header_read_rsrc(struct adouble *ad, const char *path)
if (rc != 0) {
goto exit;
}
ad_setentrylen(ad, ADEID_RFORK, sbuf.st_ex_size);
len = sbuf.st_ex_size;
ad_setentrylen(ad, ADEID_RFORK, len);
} else {
/* FIXME: direct sys_pread(), don't have an fsp */
len = sys_pread(fd, ad->ad_data, AD_DATASZ_DOT_UND, 0);