mirror of
https://github.com/samba-team/samba.git
synced 2025-01-26 10:04:02 +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:
parent
5b3c71cd9c
commit
91ff65b2f6
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user