Be explicit about the desired result

This commit is contained in:
kannibalox
2024-10-27 17:18:05 -04:00
committed by Jari Sundell
parent fd1d5dbdb2
commit 4a9d9952e1
+1 -1
View File
@@ -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();