mirror of
https://git.code.sf.net/p/ntfs-3g/ntfs-3g.git
synced 2024-11-23 10:04:00 +08:00
ntfs_attr_pclose: fix uninitialized variable which may lead to an infinite
loop on a read-only file system (Erik Larsson, Jean-Pierre Andre)
This commit is contained in:
parent
670d72620d
commit
c32f2a4f59
@ -1883,6 +1883,7 @@ int ntfs_attr_pclose(ntfs_attr *na)
|
||||
}
|
||||
|
||||
retry:
|
||||
written = 0;
|
||||
if (!NVolReadOnly(vol)) {
|
||||
|
||||
written = ntfs_compressed_close(na, rl, ofs);
|
||||
|
Loading…
Reference in New Issue
Block a user