diff options
context:
space:
mode:
authorBryce Kwon <bryce@brycekwon.com>
committerBryce Kwon <bryce@brycekwon.com>
commit
parent
tree
download
Backfill an absent commit message
Diffstat (limited to 'source/ui-shared.c')
-rw-r--r--source/ui-shared.c2
1 file changed, 1 insertion, 1 deletion
diff --git a/source/ui-shared.c b/source/ui-shared.c
index 7687ae1..3ec4f55 100644
--- a/source/ui-shared.c
+++ b/source/ui-shared.c
@@ -436,7 +436,7 @@ void cgit_commit_link(const char *name, const char *title, const char *class,
html("follow=1");
}
html("'>");
- if (name[0] != '\0') {
+ if (name && name[0] != '\0') {
if (strlen(name) > ctx.cfg.max_msg_len && ctx.cfg.max_msg_len >= 15) {
html_ntxt(name, ctx.cfg.max_msg_len - 3);
html("...");