summaryrefslogtreecommitdiff
path: root/src/import.cpp
diff options
context:
space:
mode:
authorAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 19:38:21 +0100
committerAldrik Ramaekers <aldrikboy@gmail.com>2024-03-14 19:38:21 +0100
commitf2f44dfce609b7f5b228e61829d454b5c8c2734a (patch)
treea792158a6e946b9f2ed0769c6da1df9b4e93c356 /src/import.cpp
parentf2b44f582dbb9d898e6aad1db6919b5a295815be (diff)
more static analysis fixes
Diffstat (limited to 'src/import.cpp')
-rw-r--r--src/import.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/import.cpp b/src/import.cpp
index ffa187d..29f0ff9 100644
--- a/src/import.cpp
+++ b/src/import.cpp
@@ -67,6 +67,7 @@ static bool _ts_import_csv_v1(ts_search_result* result, FILE *read_file) {
// New match within current_file
if (current_file && sscanf(line_buffer, "MATCH,%u,%zu,%zu\n", &match.line_nr, &match.word_match_length, &match.word_match_offset) == 3) {
match.file = current_file;
+ match.file->match_count++;
utf8_int8_t* iter = line_buffer;
int count = 0;