From d31d779192a8f55a2d4899c2a78bf007cee887cb Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Fri, 21 Feb 2014 02:46:33 +0100 Subject: [PATCH] store: Fixed data format error detection. --- src/core/store_lookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/store_lookup.c b/src/core/store_lookup.c index 64145ee..089b99f 100644 --- a/src/core/store_lookup.c +++ b/src/core/store_lookup.c @@ -148,7 +148,7 @@ match_attr(attr_matcher_t *m, sdb_store_base_t *obj) sdb_attribute_t *attr = SDB_ATTR(obj); char buf[sdb_data_strlen(&attr->value) + 1]; - if (sdb_data_format(&attr->value, buf, sizeof(buf), SDB_UNQUOTED)) + if (sdb_data_format(&attr->value, buf, sizeof(buf), SDB_UNQUOTED) <= 0) return -1; return match_name(&m->value, buf); } -- 2.30.2