]> granicus.if.org Git - neomutt/commitdiff
notmuch: don't overwrite nm_default_uri
authorAustin Ray <austin@austinray.io>
Tue, 27 Nov 2018 03:07:38 +0000 (22:07 -0500)
committerRichard Russon <rich@flatcap.org>
Tue, 27 Nov 2018 11:41:02 +0000 (11:41 +0000)
In commit 1040935, I accidentally removed a check for using `Folder` as
the `db_filename` if `db_filename` is null. My change made it so that it
always overwrote the value.

notmuch/nm_db.c

index 1594354954373dc01d91c52f8e4ef5b32e553d9d..2ad7fa5432903d8965280a3c061ae9c746664ea8 100644 (file)
@@ -50,7 +50,8 @@ const char *nm_db_get_filename(struct Mailbox *m)
   if (!db_filename && !Folder)
     return NULL;
 
-  db_filename = Folder;
+  if (!db_filename)
+    db_filename = Folder;
 
   if (nm_path_probe(db_filename, NULL) == MUTT_NOTMUCH)
     db_filename += NmUriProtocolLen;