]> granicus.if.org Git - neomutt/commitdiff
Fix loop terminator in in mutt_find_cfg().
authorKevin McCarthy <kevin@8t8.us>
Tue, 15 Nov 2016 20:03:58 +0000 (12:03 -0800)
committerRichard Russon <rich@flatcap.org>
Fri, 30 Dec 2016 20:05:36 +0000 (20:05 +0000)
Keep searching even if home is NULL.

init.c

diff --git a/init.c b/init.c
index 910c46a5634cc5233156f3fa7aaa14f6512bfda0..ee271538c827d186bcf6d0eb4e8325578d0a2e91 100644 (file)
--- a/init.c
+++ b/init.c
@@ -3237,7 +3237,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;