From 16f6bdb3588ac790991ea4b737c6edd5b739d8bb Mon Sep 17 00:00:00 2001 From: Tomasz Sowa Date: Wed, 14 Apr 2021 17:42:57 +0200 Subject: [PATCH] fixed: Space::has_value(...) incorrectly compared strings --- space/space.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/space/space.cpp b/space/space.cpp index c1611a9..4db4f1d 100644 --- a/space/space.cpp +++ b/space/space.cpp @@ -1343,7 +1343,8 @@ bool Space::has_value(const char * val) const if( table_item->type == type_string ) { - return table_item->value.value_string == val; + if( table_item->value.value_string == val ) + return true; } } } @@ -1372,7 +1373,8 @@ bool Space::has_value(const wchar_t * val) const if( table_item->type == type_wstring ) { - return table_item->value.value_wstring == val; + if( table_item->value.value_wstring == val ) + return true; } } }