From c95c60e9961b1084a14f24cb6e793a2bc17badaf Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 19 Mar 2018 09:42:52 +0000 Subject: [PATCH] range check - reset_value --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.c b/init.c index 90e906bfc..28fab2b44 100644 --- a/init.c +++ b/init.c @@ -4337,7 +4337,7 @@ void reset_value(const char *name) return; int idx = mutt_option_index(name); - if (!idx) + if (idx < 0) return; restore_default(&MuttVars[idx]); -- 2.50.1