diff options
author | aosipenko <[email protected]> | 2022-02-10 16:48:08 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:48:08 +0300 |
commit | 69e3c43df1c96bc2ac8946bf4dfb1f5fc438ff7f (patch) | |
tree | b222e5ac2e2e98872661c51ccceee5da0d291e13 /tools/archiver/main.cpp | |
parent | 948fd24d47d4b3b7815aaef1686aea00ef3f4288 (diff) |
Restoring authorship annotation for <[email protected]>. Commit 2 of 2.
Diffstat (limited to 'tools/archiver/main.cpp')
-rw-r--r-- | tools/archiver/main.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/tools/archiver/main.cpp b/tools/archiver/main.cpp index 9a5cc863ef1..6cda54c1ea8 100644 --- a/tools/archiver/main.cpp +++ b/tools/archiver/main.cpp @@ -615,16 +615,16 @@ int main(int argc, char** argv) { for (size_t i = 0; i < files.size(); ++i) { const auto& path = files[i]; - size_t off = 0; -#ifdef _win_ - if (path[0] > 0 && isalpha(path[0]) && path[1] == ':') - off = 2; // skip drive letter ("d:") + size_t off = 0; +#ifdef _win_ + if (path[0] > 0 && isalpha(path[0]) && path[1] == ':') + off = 2; // skip drive letter ("d:") #endif // _win_ - const size_t pos = path.find(':', off); + const size_t pos = path.find(':', off); TRec cur; - cur.Path = path.substr(0, pos); + cur.Path = path.substr(0, pos); if (pos != TString::npos) - cur.Prefix = path.substr(pos + 1); + cur.Prefix = path.substr(pos + 1); if (keys.size()) cur.Key = keys[i]; cur.Recursive = recursive; |