From e159c290d1cd8fed8112a61ecd124047fc7ce678 Mon Sep 17 00:00:00 2001 From: Luca Deri Date: Mon, 9 Sep 2024 23:04:01 +0200 Subject: [PATCH] Compilation fix --- example/ndpiReader.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/example/ndpiReader.c b/example/ndpiReader.c index 98b4ae14a3d..ce86c6fcd14 100644 --- a/example/ndpiReader.c +++ b/example/ndpiReader.c @@ -6163,8 +6163,9 @@ void ballTreeUnitTest() { ndpi_knn result; u_int32_t nun_results = 2; int i, j; - - assert(ball_tree = ndpi_btree_init(rows, num_rows, num_columns)); + + ball_tree = ndpi_btree_init(rows, num_rows, num_columns); + assert(ball_tree != NULL); result = ndpi_btree_query(ball_tree, q_rows, sizeof(q_rows) / sizeof(double*), num_columns, nun_results);