minor : Fixed ntfs_fuse_read() returning garbage in error case (Fabian Keil)

This commit is contained in:
Jean-Pierre André 2011-08-04 15:49:35 +02:00
parent fa3d7a5728
commit 9497aa7974

View File

@ -1262,8 +1262,10 @@ static void ntfs_fuse_read(fuse_req_t req, fuse_ino_t ino, size_t size,
s64 total = 0;
s64 max_read;
if (!size)
if (!size) {
res = 0;
goto exit;
}
buf = (char*)ntfs_malloc(size);
if (!buf) {
res = -errno;