aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_uri.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_uri.c')
-rw-r--r--test/test_uri.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_uri.c b/test/test_uri.c
index 61f432fd..65e12490 100644
--- a/test/test_uri.c
+++ b/test/test_uri.c
@@ -135,9 +135,9 @@ test_uri_from_string(void)
static inline bool
chunk_equals(const SerdStringView* a, const SerdStringView* b)
{
- return (!a->len && !b->len && !a->buf && !b->buf) ||
- (a->len && b->len && a->buf && b->buf &&
- !strncmp((const char*)a->buf, (const char*)b->buf, a->len));
+ return (!a->length && !b->length && !a->data && !b->data) ||
+ (a->length && b->length && a->data && b->data &&
+ !strncmp((const char*)a->data, (const char*)b->data, a->length));
}
static void