]> gitweb.ps.run Git - ps-cgit/blobdiff - ui-log.c
ui-log: Do not always emit decoration span
[ps-cgit] / ui-log.c
index 0a3938bf97c581b92e5ba0576d8232fd78c32a3a..641a5b643f2b354d2b50636db8c591861eadac9e 100644 (file)
--- a/ui-log.c
+++ b/ui-log.c
@@ -61,6 +61,8 @@ void show_commit_decorations(struct commit *commit)
 
        buf[sizeof(buf) - 1] = 0;
        deco = get_name_decoration(&commit->object);
+       if (!deco)
+               return;
        html("<span class='decoration'>");
        while (deco) {
                if (starts_with(deco->name, "refs/heads/")) {