-rw-r--r-- | ui-shared.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui-shared.c b/ui-shared.c index 9ab6409..657e8af 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -128,5 +128,5 @@ static char *repolink(char *title, char *class, char *page, char *head, | |||
128 | delim = "&"; | 128 | delim = "&"; |
129 | } | 129 | } |
130 | if (head && head != cgit_query_head) { | 130 | if (head && strcmp(head, cgit_query_head)) { |
131 | html(delim); | 131 | html(delim); |
132 | html("h="); | 132 | html("h="); |
@@ -143,5 +143,5 @@ void cgit_tree_link(char *name, char *title, char *class, char *head, | |||
143 | 143 | ||
144 | delim = repolink(title, class, "tree", head, path); | 144 | delim = repolink(title, class, "tree", head, path); |
145 | if (rev && rev != cgit_query_head) { | 145 | if (rev && strcmp(rev, cgit_query_head)) { |
146 | html(delim); | 146 | html(delim); |
147 | html("id="); | 147 | html("id="); |