Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void CDownloadWithSources::MergeMetadata(
- const CXMLElement* pXML)
- {
- CQuickLock pLock( Transfers.m_pSection );
- CXMLAttribute* pAttr1 =
- m_pXML->GetAttribute(CXMLAttribute::schemaName);
- CXMLAttribute* pAttr2 =
- pXML->GetAttribute(CXMLAttribute::schemaName);
- if (pAttr1 && pAttr2 &&
- !pAttr1->GetValue().CompareNoCase(pAttr1->GetValue()))
- ....
- }
- This suspicious code was found in Shareaza project by PVS-Studio static code analyzer.
- Warning message is:
- V678 An object is used as an argument to its own method. Consider checking the first actual argument of the 'CompareNoCase' function. downloadwithsources.cpp 1281
- PVS-Studio is a static analyzer for detecting bugs in the source code of applications written in C, C++, C++11, C++/CX. Site: http://www.viva64.com/en/pvs-studio/
Advertisement
Add Comment
Please, Sign In to add comment