From 3233e191d8141f45fb7c2606960ae1a8c2bd41c1 Mon Sep 17 00:00:00 2001 From: Richard Russon Date: Mon, 29 Apr 2019 14:57:29 +0100 Subject: [PATCH] libmutt: fix envlist code for degenerate cases --- mutt/envlist.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mutt/envlist.c b/mutt/envlist.c index 4d961f773..be9edfa3c 100644 --- a/mutt/envlist.c +++ b/mutt/envlist.c @@ -83,6 +83,9 @@ void mutt_envlist_init(char *envp[]) */ bool mutt_envlist_set(const char *name, const char *value, bool overwrite) { + if (!name) + return false; + char **envp = EnvList; char work[1024]; -- 2.40.0