test: Replace accidentally placed bit-OR with logical-OR

This commit is contained in:
Hennadii Stepanov 2021-02-24 12:55:43 +02:00
parent b59f2787e5
commit df8f2a11dc
No known key found for this signature in database
GPG Key ID: 410108112E7EA81F

View File

@ -63,7 +63,7 @@ static std::map<std::string, unsigned int> mapFlagNames = {
unsigned int ParseScriptFlags(std::string strFlags)
{
if (strFlags.empty() | strFlags == "NONE") return 0;
if (strFlags.empty() || strFlags == "NONE") return 0;
unsigned int flags = 0;
std::vector<std::string> words;
boost::algorithm::split(words, strFlags, boost::algorithm::is_any_of(","));