From: Thomas Roessler Date: Sun, 28 Oct 2001 09:09:14 +0000 (+0000) Subject: Another bug related to #837. X-Git-Tag: mutt-1-3-23-1-rel~14 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=82160a06ccdb22db4ddaf4e2a253a3f04b39b80e;p=mutt Another bug related to #837. --- diff --git a/url.c b/url.c index 289acb97..85f95420 100644 --- a/url.c +++ b/url.c @@ -67,7 +67,7 @@ url_scheme_t url_check_scheme (const char *s) char *t; int i; - if (!(t = strchr (s, ':'))) + if (!s || !(t = strchr (s, ':'))) return U_UNKNOWN; if ((t - s) + 1 >= sizeof (sbuf)) return U_UNKNOWN;