]> granicus.if.org Git - neomutt/commitdiff
mutt_str_startswith - notmuch/mutt_notmuch.c
authorPietro Cerutti <gahr@gahr.ch>
Fri, 9 Nov 2018 17:01:47 +0000 (17:01 +0000)
committerRichard Russon <rich@flatcap.org>
Wed, 14 Nov 2018 15:10:31 +0000 (15:10 +0000)
notmuch/mutt_notmuch.c

index 69681696e7609b15ded615376bc1d295a421489e..60959270da62d1533b7d81e4a7c2dc5fa004301c 100644 (file)
@@ -2510,7 +2510,7 @@ enum MailboxType nm_path_probe(const char *path, const struct stat *st)
   if (!path)
     return MUTT_UNKNOWN;
 
-  if (mutt_str_strncasecmp(path, NmUriProtocol, NmUriProtocolLen) == 0)
+  if (mutt_str_startswith(path, NmUriProtocol, CASE_IGNORE))
     return MUTT_NOTMUCH;
 
   return MUTT_UNKNOWN;