diff options
author | John Keeping | 2015-03-08 16:32:25 +0000 |
---|---|---|
committer | Jason A. Donenfeld | 2015-03-09 17:40:36 +0100 |
commit | d34b96719053ff9340519b64f6d970caaa64350d (patch) | |
tree | d5635bb7d7719392bb8dc3406a74105a8391604e | |
parent | ui-shared: avoid initializing static variable to zero (diff) | |
download | cgit-d34b96719053ff9340519b64f6d970caaa64350d.tar.gz cgit-d34b96719053ff9340519b64f6d970caaa64350d.zip |
ui-shared: don't use an integer as a NULL pointer
Signed-off-by: John Keeping <john@keeping.me.uk>
-rw-r--r-- | ui-shared.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ui-shared.c b/ui-shared.c index 1e3c131..7bcb8d3 100644 --- a/ui-shared.c +++ b/ui-shared.c | |||
@@ -119,7 +119,7 @@ char *cgit_fileurl(const char *reponame, const char *pagename, | |||
119 | char *cgit_pageurl(const char *reponame, const char *pagename, | 119 | char *cgit_pageurl(const char *reponame, const char *pagename, |
120 | const char *query) | 120 | const char *query) |
121 | { | 121 | { |
122 | return cgit_fileurl(reponame, pagename, 0, query); | 122 | return cgit_fileurl(reponame, pagename, NULL, query); |
123 | } | 123 | } |
124 | 124 | ||
125 | const char *cgit_repobasename(const char *reponame) | 125 | const char *cgit_repobasename(const char *reponame) |