diff options
author | Volker Lendecke <vl@samba.org> | 2015-03-06 09:59:25 +0000 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2015-03-06 23:56:36 +0100 |
commit | 91ff65b2f63061fa66b6bcc3c142c17b03581759 (patch) | |
tree | 13f3363ed81a722158999d747e37c381c337a6bf /source3/modules/vfs_fruit.c | |
parent | 5b3c71cd9c4d20a04f7505ad904f95d0ecf5ac2e (diff) | |
download | samba-91ff65b2f63061fa66b6bcc3c142c17b03581759.tar.gz |
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
Diffstat (limited to 'source3/modules/vfs_fruit.c')
-rw-r--r-- | source3/modules/vfs_fruit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source3/modules/vfs_fruit.c b/source3/modules/vfs_fruit.c index 4eace1eb354..0445e04cf0e 100644 --- a/source3/modules/vfs_fruit.c +++ b/source3/modules/vfs_fruit.c @@ -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); |