diff --git a/src/sfs/sfs.pas b/src/sfs/sfs.pas
index 67136e9ab0c96e900accb49a8635ba56582f1768..c3c74104eea81ca00bcd9e0004125e7f86272072 100644 (file)
--- a/src/sfs/sfs.pas
+++ b/src/sfs/sfs.pas
while f < volumes.Count do
begin
vi := TVolumeInfo(volumes[f]);
- if vi = nil then continue;
- if (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then
+ if (vi <> nil) and (not vi.fPermanent) and (vi.fOpenedFilesCount = 0) then
begin
// this volume probably can be removed
used := false;