]> granicus.if.org Git - mutt/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)
committerKevin McCarthy <kevin@8t8.us>
Tue, 15 Nov 2016 20:03:58 +0000 (12:03 -0800)
Keep searching even if home is NULL.

init.c

diff --git a/init.c b/init.c
index 6484ddce6d4ca68a670de0fa9acb854cfd24d3f0..370acddd91815ef1af47e4cc4fbdb0dd3360e218 100644 (file)
--- 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;