summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVicent Marti <tanoku@gmail.com>2014-09-04 06:41:18 +0200
committerVicent Marti <tanoku@gmail.com>2014-09-09 03:39:15 +0200
commitf5168c63ad305b3e331eb7d31efaf46b0541bba4 (patch)
tree935f7055d2da2624038f63a715817a18f37c0569 /src
parentbb6d7c4a394e61574f5f32db60da5c5f5a5e5002 (diff)
368/73
Diffstat (limited to 'src')
-rw-r--r--src/blocks.c1
-rw-r--r--src/inlines.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/blocks.c b/src/blocks.c
index 94ff986..bd25d6c 100644
--- a/src/blocks.c
+++ b/src/blocks.c
@@ -57,6 +57,7 @@ bool is_blank(gh_buf *s, int offset)
return true;
case ' ':
offset++;
+ break;
default:
return false;
}
diff --git a/src/inlines.c b/src/inlines.c
index ef27a24..ced4673 100644
--- a/src/inlines.c
+++ b/src/inlines.c
@@ -123,7 +123,7 @@ inline static inl* make_linkable(int t, inl* label, chunk url, chunk title)
e->tag = t;
e->content.linkable.label = label;
e->content.linkable.url = chunk_to_cstr(&url);
- e->content.linkable.title = url.len ? chunk_to_cstr(&title) : NULL;
+ e->content.linkable.title = title.len ? chunk_to_cstr(&title) : NULL;
e->next = NULL;
return e;
}