From: Kevin McCarthy Date: Tue, 15 Nov 2016 20:03:58 +0000 (-0800) Subject: Fix loop terminator in in mutt_find_cfg(). X-Git-Tag: neomutt-20170225~32^2~67 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cd6506e4cf3d88702d769c6e9be9e693407963a4;p=neomutt Fix loop terminator in in mutt_find_cfg(). Keep searching even if home is NULL. --- 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;