summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-10-18 08:08:16 +0300
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-10-18 08:08:16 +0300
commit0538ae3ca02b249c784757920e3731efa8175d53 (patch)
treea2efff00eb617f52a5085d2f62fe4b9f12971489 /src
parent164de748cdd63e7cf092714729dfc73864e6c9bc (diff)
GmDocument: Fixed a potential crash
Diffstat (limited to 'src')
-rw-r--r--src/gmdocument.c3
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
2266enum iColorId linkColor_GmDocument(const iGmDocument *d, iGmLinkId linkId, enum iGmLinkPart part) { 2266enum 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);