From 9033ab8f074c7b3142f96778ee5d85eee197e7ab Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Sat, 21 Sep 2019 16:22:34 +0100 Subject: [PATCH] fix checks in progress_choose_increment() --- progress.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/progress.c b/progress.c index 4391b8817..bb10d7093 100644 --- a/progress.c +++ b/progress.c @@ -116,7 +116,7 @@ static void message_bar(int percent, const char *fmt, ...) static size_t progress_choose_increment(enum ProgressType type) { static short *incs[] = { &C_ReadInc, &C_WriteInc, &C_NetInc }; - return (type < 0 || type >= mutt_array_size(incs)) ? 0 : *incs[type]; + return (type >= mutt_array_size(incs)) ? 0 : *incs[type]; } /** -- 2.40.0