From: Richard Russon Date: Sat, 21 Sep 2019 15:22:34 +0000 (+0100) Subject: fix checks in progress_choose_increment() X-Git-Tag: 2019-10-25~37^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9033ab8f074c7b3142f96778ee5d85eee197e7ab;p=neomutt fix checks in progress_choose_increment() --- 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]; } /**