author | Lars Hjemli <hjemli@gmail.com> | 2007-06-17 10:58:59 (UTC) |
---|---|---|
committer | Lars Hjemli <hjemli@gmail.com> | 2007-06-17 10:58:59 (UTC) |
commit | 486c87ec2906c445ca505c877720d56e02aed784 (patch) (side-by-side diff) | |
tree | 42d66dc8e9dfee4812f3f37b7bc8deef04d4e78d /ui-shared.c | |
parent | 44947bfcdc0d6e8c7d673bea0538cbf2a182f289 (diff) | |
download | cgit-486c87ec2906c445ca505c877720d56e02aed784.zip cgit-486c87ec2906c445ca505c877720d56e02aed784.tar.gz cgit-486c87ec2906c445ca505c877720d56e02aed784.tar.bz2 |
ui-shared: use strcmp() to compare strings
Somehow a couple of pointer comparisions crept into the new repolink()
and cgit_tree_link() functions. Fix it.
Signed-off-by: Lars Hjemli <hjemli@gmail.com>
-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, delim = "&"; } - if (head && head != cgit_query_head) { + if (head && strcmp(head, cgit_query_head)) { html(delim); html("h="); @@ -143,5 +143,5 @@ void cgit_tree_link(char *name, char *title, char *class, char *head, delim = repolink(title, class, "tree", head, path); - if (rev && rev != cgit_query_head) { + if (rev && strcmp(rev, cgit_query_head)) { html(delim); html("id="); |