summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/gmutil.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gmutil.c b/src/gmutil.c
index e44971d0..264e7ac8 100644
--- a/src/gmutil.c
+++ b/src/gmutil.c
@@ -35,6 +35,10 @@ iRegExp *newGemtextLink_RegExp(void) {
35} 35}
36 36
37void init_Url(iUrl *d, const iString *text) { 37void init_Url(iUrl *d, const iString *text) {
38 if (!text) {
39 iZap(*d);
40 return;
41 }
38 /* Handle "file:" as a special case since it only has the path part. */ 42 /* Handle "file:" as a special case since it only has the path part. */
39 if (startsWithCase_String(text, "file://")) { 43 if (startsWithCase_String(text, "file://")) {
40 iZap(*d); 44 iZap(*d);