From 2c4f116331c50eeea329cf85266b268f91607e8e Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 9 Nov 2022 16:18:28 -0500 Subject: parse: Squelch an uninitialized variable warning --- src/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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); -- cgit v1.2.3