summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2022-11-09 16:18:28 -0500
committerTavian Barnes <tavianator@tavianator.com>2022-11-09 16:18:28 -0500
commit2c4f116331c50eeea329cf85266b268f91607e8e (patch)
tree690bd01477622625883aeaeb56c8e714f3003e64
parentccbff779918934d1f863bffd5b411926d39390d8 (diff)
downloadbfs-2c4f116331c50eeea329cf85266b268f91607e8e.tar.xz
parse: Squelch an uninitialized variable warning
-rw-r--r--src/parse.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/parse.c b/src/parse.c
index 45242f0..74f160c 100644
--- a/src/parse.c
+++ b/src/parse.c
@@ -3341,7 +3341,7 @@ static const struct table_entry *table_lookup(const char *arg) {
/** Search for a fuzzy match in the parse table. */
static const struct table_entry *table_lookup_fuzzy(const char *arg) {
const struct table_entry *best = NULL;
- int best_dist;
+ int best_dist = INT_MAX;
for (const struct table_entry *entry = parse_table; entry->arg; ++entry) {
int dist = typo_distance(arg, entry->arg);