aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/main.c b/tests/main.c
index 2a08ec7..ac3a081 100644
--- a/tests/main.c
+++ b/tests/main.c
@@ -20,7 +20,7 @@ static char* get_file_content(const char *filepath, size_t *filesize) {
}
static int result_callback(QuickMediaMatchNode *node, void *userdata) {
- QuickMediaStringView href = quickmedia_html_node_get_attribute_value(node, "href");
+ QuickMediaStringView href = quickmedia_html_node_get_attribute_value(node->node, "href");
QuickMediaStringView text = quickmedia_html_node_get_text(node);
printf("a href: %.*s, node value: %.*s\n", (int)href.size, href.data, (int)text.size, text.data);
return 0;