mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-08 11:12:31 +00:00
Use std::strncmp for string comparison
This commit is contained in:
@@ -103,7 +103,7 @@ xml_value_to_object(const tinyxml2::XMLNode* elem) {
|
||||
if (elem == nullptr) {
|
||||
throw xmlrpc_error(XMLRPC_INTERNAL_ERROR, "received null element to convert");
|
||||
}
|
||||
if (std::string("value") != elem->Value()) {
|
||||
if (std::strncmp(elem->Value(), "value", 5)) {
|
||||
throw xmlrpc_error(XMLRPC_INTERNAL_ERROR, "received non-value element to convert");
|
||||
}
|
||||
auto value_element = elem->FirstChild();
|
||||
|
||||
Reference in New Issue
Block a user