diff options
author | dmikhalev <[email protected]> | 2022-02-10 16:49:29 +0300 |
---|---|---|
committer | Daniil Cherednik <[email protected]> | 2022-02-10 16:49:29 +0300 |
commit | 3b5ee31ed70f690af39dfdec632060610b71b89e (patch) | |
tree | f137aebad00b8064ec63fcd03ebc9fef5121eb9f /util/folder/dirut.cpp | |
parent | 3a0b7cd78a1a8366b3944d8d1e11ef9bb52549bf (diff) |
Restoring authorship annotation for <[email protected]>. Commit 1 of 2.
Diffstat (limited to 'util/folder/dirut.cpp')
-rw-r--r-- | util/folder/dirut.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/util/folder/dirut.cpp b/util/folder/dirut.cpp index ffc9b09f967..1541245b5d9 100644 --- a/util/folder/dirut.cpp +++ b/util/folder/dirut.cpp @@ -491,12 +491,12 @@ void MakePathIfNotExist(const char* path, int mode) { const char* GetFileNameComponent(const char* f) { const char* p = strrchr(f, LOCSLASH_C); -#ifdef _win_ - // "/" is also valid char separator on Windows - const char* p2 = strrchr(f, '/'); - if (p2 > p) - p = p2; -#endif +#ifdef _win_ + // "/" is also valid char separator on Windows + const char* p2 = strrchr(f, '/'); + if (p2 > p) + p = p2; +#endif if (p) { return p + 1; |