mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 20:22:31 +00:00
Be explicit about the desired result
This commit is contained in:
@@ -105,7 +105,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::strncmp(elem->Value(), "value", 5)) {
|
||||
if (std::strncmp(elem->Value(), "value", 5) != 0) {
|
||||
throw xmlrpc_error(XMLRPC_INTERNAL_ERROR, "received non-value element to convert");
|
||||
}
|
||||
auto value_element = elem->FirstChild();
|
||||
|
||||
Reference in New Issue
Block a user