From 7c968aba53f3e095adbb42458f31e64ea10bda80 Mon Sep 17 00:00:00 2001 From: Hendrik Muhs Date: Thu, 30 May 2024 20:28:12 +0200 Subject: [PATCH] fix wrong check --- keyvi/bin/keyvi_c/c_api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/keyvi/bin/keyvi_c/c_api.cpp b/keyvi/bin/keyvi_c/c_api.cpp index 68c4bc048..42e885bee 100644 --- a/keyvi/bin/keyvi_c/c_api.cpp +++ b/keyvi/bin/keyvi_c/c_api.cpp @@ -157,7 +157,7 @@ char* keyvi_match_get_value_as_string(const keyvi_match* match) { keyvi_bytes keyvi_match_get_msgpacked_value(const struct keyvi_match* match) { const keyvi_bytes empty_keyvi_bytes{0, nullptr}; - if (match->obj_) { + if (!match->obj_) { return empty_keyvi_bytes; }