Skip to content

Commit

Permalink
fuzzy: fix maybe-uninitialized warning
Browse files Browse the repository at this point in the history
  • Loading branch information
nalgeon committed Aug 7, 2024
1 parent d1d04c1 commit 999336f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fuzzy/leven.c
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit 999336f

Please sign in to comment.