diff options
Diffstat (limited to 'CPP/7zip/UI/Common')
-rwxr-xr-x | CPP/7zip/UI/Common/Update.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/CPP/7zip/UI/Common/Update.cpp b/CPP/7zip/UI/Common/Update.cpp index 1f88a6f0..d8fee28b 100755 --- a/CPP/7zip/UI/Common/Update.cpp +++ b/CPP/7zip/UI/Common/Update.cpp @@ -531,8 +531,11 @@ HRESULT EnumerateInArchiveItems(const NWildcard::CCensor &censor, CArcItem ai; RINOK(GetArchiveItemPath(archive, i, ai.Name)); + // check it: defaultItemName !!! + if (ai.Name.IsEmpty()) + ai.Name = defaultItemName; RINOK(IsArchiveItemFolder(archive, i, ai.IsDir)); - ai.Censored = censor.CheckPath(ai.Name.IsEmpty() ? defaultItemName : ai.Name, !ai.IsDir); + ai.Censored = censor.CheckPath(ai.Name, !ai.IsDir); RINOK(GetArchiveItemFileTime(archive, i, archiveFileInfo.MTime, ai.MTime)); { |