From cd6506e4cf3d88702d769c6e9be9e693407963a4 Mon Sep 17 00:00:00 2001 From: Kevin McCarthy Date: Tue, 15 Nov 2016 12:03:58 -0800 Subject: [PATCH] Fix loop terminator in in mutt_find_cfg(). Keep searching even if home is NULL. --- init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/init.c b/init.c index 6484ddce6..370acddd9 100644 --- a/init.c +++ b/init.c @@ -2918,7 +2918,7 @@ static char* mutt_find_cfg (const char *home, const char *xdg_cfg_home) int i; - for (i = 0; locations[i][0] && locations[i][1]; i++) + for (i = 0; locations[i][0] || locations[i][1]; i++) { int j; -- 2.40.0