From 3dcda7fd7ceacdeee7a04e3271554a99daa95668 Mon Sep 17 00:00:00 2001 From: Metin Cakircali Date: Fri, 20 Dec 2024 23:58:08 +0100 Subject: [PATCH] fix(StringContent): compareString problem strcmp returns wrong result --- src/eckit/value/StringContent.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/eckit/value/StringContent.cc b/src/eckit/value/StringContent.cc index a39496af4..6f79021ac 100644 --- a/src/eckit/value/StringContent.cc +++ b/src/eckit/value/StringContent.cc @@ -66,7 +66,7 @@ int StringContent::compare(const Content& other) const { } int StringContent::compareString(const StringContent& other) const { - return ::strcmp(value_.c_str(), other.value_.c_str()); + return value_.compare(other.value_); } void StringContent::value(std::string& s) const {