From 999336f5afe969b3bd4c71010a63363630309756 Mon Sep 17 00:00:00 2001 From: Anton Date: Thu, 8 Aug 2024 00:47:06 +0500 Subject: [PATCH] fuzzy: fix maybe-uninitialized warning --- src/fuzzy/leven.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/fuzzy/leven.c b/src/fuzzy/leven.c index 169fe869..12c81514 100644 --- a/src/fuzzy/leven.c +++ b/src/fuzzy/leven.c @@ -39,7 +39,7 @@ unsigned levenshtein(const char* str1, const char* str2) { // declare variables unsigned row, col; - unsigned last_diag, cur, cost; + unsigned last_diag = 0, cur, cost; // initialize array to hold values unsigned* vector = calloc(str1_len + 1, sizeof(unsigned));