From 696bc815f07b8b8f7285e47d38a30f64eb5be486 Mon Sep 17 00:00:00 2001 From: Pietro Cerutti Date: Fri, 9 Nov 2018 17:01:47 +0000 Subject: [PATCH] mutt_str_startswith - notmuch/mutt_notmuch.c --- notmuch/mutt_notmuch.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/notmuch/mutt_notmuch.c b/notmuch/mutt_notmuch.c index 69681696e..60959270d 100644 --- a/notmuch/mutt_notmuch.c +++ b/notmuch/mutt_notmuch.c @@ -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; -- 2.49.0