Core/Misc: Fix static analysis issues

(cherrypicked from 8f2bcd79da)
This commit is contained in:
jackpoz
2017-02-25 17:07:22 +01:00
committed by Shauren
parent 154f9a03e7
commit 6f1b13e5c4

View File

@@ -418,7 +418,7 @@ bool PlayerDumpWriter::GetDump(ObjectGuid::LowType guid, std::string &dump)
DumpReturn PlayerDumpWriter::WriteDump(const std::string& file, ObjectGuid::LowType guid)
{
if (sWorld->getBoolConfig(CONFIG_PDUMP_NO_PATHS))
if (strstr(file.c_str(), "\\") || strstr(file.c_str(), "/"))
if (strchr(file.c_str(), '\\') || strchr(file.c_str(), '/'))
return DUMP_FILE_OPEN_ERROR;
if (sWorld->getBoolConfig(CONFIG_PDUMP_NO_OVERWRITE))