]> granicus.if.org Git - neomutt/commitdiff
fix: stop allowing duplicate mailboxes
authorRichard Russon <rich@flatcap.org>
Sat, 8 Jul 2017 11:40:15 +0000 (12:40 +0100)
committerRichard Russon <rich@flatcap.org>
Sat, 8 Jul 2017 11:42:46 +0000 (12:42 +0100)
buffy.c

diff --git a/buffy.c b/buffy.c
index d51948214451abf8d4a71939c3ca4c2271583246..346bb99954376f282424e0f81cb0cdcc93a78df3 100644 (file)
--- a/buffy.c
+++ b/buffy.c
@@ -555,8 +555,10 @@ int mutt_parse_mailboxes(struct Buffer *path, struct Buffer *s,
       }
     }
 
-    if (!*b)
-      *b = buffy_new(buf);
+    if (*b)
+      continue;
+
+    *b = buffy_new(buf);
 
     (*b)->new = false;
     (*b)->notified = true;