diff options
-rw-r--r-- | src/gmdocument.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c index 1f66e978..5d8c6e20 100644 --- a/src/gmdocument.c +++ b/src/gmdocument.c | |||
@@ -2265,6 +2265,9 @@ iLocalDef iBool isOldSchool_GmLinkScheme(enum iGmLinkScheme d) { | |||
2265 | 2265 | ||
2266 | enum iColorId linkColor_GmDocument(const iGmDocument *d, iGmLinkId linkId, enum iGmLinkPart part) { | 2266 | enum iColorId linkColor_GmDocument(const iGmDocument *d, iGmLinkId linkId, enum iGmLinkPart part) { |
2267 | const iGmLink *link = link_GmDocument_(d, linkId); | 2267 | const iGmLink *link = link_GmDocument_(d, linkId); |
2268 | if (!link) { | ||
2269 | return none_ColorId; | ||
2270 | } | ||
2268 | // const int www_GmLinkFlag = http_GmLinkFlag | mailto_GmLinkFlag; | 2271 | // const int www_GmLinkFlag = http_GmLinkFlag | mailto_GmLinkFlag; |
2269 | // const int gopherOrFinger_GmLinkFlag = gopher_GmLinkFlag | finger_GmLinkFlag; | 2272 | // const int gopherOrFinger_GmLinkFlag = gopher_GmLinkFlag | finger_GmLinkFlag; |
2270 | const enum iGmLinkScheme scheme = scheme_GmLinkFlag(link->flags); | 2273 | const enum iGmLinkScheme scheme = scheme_GmLinkFlag(link->flags); |