1
0
mirror of https://github.com/opencv/opencv.git synced 2026-07-30 15:53:03 +04:00

Merge pull request #12258 from savuor:fix/trace_fname_slash

This commit is contained in:
Alexander Alekhin
2018-08-20 16:22:06 +00:00
+3 -1
View File
@@ -801,10 +801,12 @@ TraceStorage* TraceManagerThreadLocal::getStorage() const
const char* pos = strrchr(filepath.c_str(), '/'); // extract filename
#ifdef _WIN32
if (!pos)
strrchr(filepath.c_str(), '\\');
pos = strrchr(filepath.c_str(), '\\');
#endif
if (!pos)
pos = filepath.c_str();
else
pos += 1; // fix to skip extra slash in filename beginning
msg.printf("#thread file: %s\n", pos);
global->put(msg);
storage.reset(new AsyncTraceStorage(filepath));