From 086446039bb047121c8de757f6e7617422d00d36 Mon Sep 17 00:00:00 2001 From: Marco Cetica Date: Fri, 13 Mar 2026 11:48:42 +0100 Subject: [PATCH] Fixed a bug about string comparison --- src/string.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/string.c b/src/string.c index a69f672..bbc2bd4 100644 --- a/src/string.c +++ b/src/string.c @@ -432,8 +432,9 @@ string_result_t string_eq(const string_t *x, const string_t *y, bool case_sensit } if (x->char_count != y->char_count) { - result.status = STRING_ERR_INVALID; - SET_MSG(result, "Strings differ in length"); + result.value.is_equ = false; + result.status = STRING_OK; + SET_MSG(result, "Comparison completed successfully"); return result; }