]> git.cameronkatri.com Git - cgit.git/commitdiff
ui-shared: don't use an integer as a NULL pointer
authorJohn Keeping <john@keeping.me.uk>
Sun, 8 Mar 2015 16:32:25 +0000 (16:32 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Mon, 9 Mar 2015 16:40:36 +0000 (17:40 +0100)
Signed-off-by: John Keeping <john@keeping.me.uk>
ui-shared.c

index 1e3c13176a174b4a31558feca4aa8dd20e8cda80..7bcb8d33f5ba38a4421a1b7aac48d229a0e5a3d7 100644 (file)
@@ -119,7 +119,7 @@ char *cgit_fileurl(const char *reponame, const char *pagename,
 char *cgit_pageurl(const char *reponame, const char *pagename,
                   const char *query)
 {
-       return cgit_fileurl(reponame, pagename, 0, query);
+       return cgit_fileurl(reponame, pagename, NULL, query);
 }
 
 const char *cgit_repobasename(const char *reponame)