]> granicus.if.org Git - mutt/commitdiff
Another bug related to #837.
authorThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Oct 2001 09:09:14 +0000 (09:09 +0000)
committerThomas Roessler <roessler@does-not-exist.org>
Sun, 28 Oct 2001 09:09:14 +0000 (09:09 +0000)
url.c

diff --git a/url.c b/url.c
index 289acb97137dc7a8d8a6d3c8ea26ed18ad890325..85f95420dfa95af9904d1e5e4339f05bfa81ecf1 100644 (file)
--- 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;