From f77e2a8cfaf07b25ddedd57348a1d957b048bbf5 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 9 Oct 2015 13:15:50 +0200 Subject: ui-shared: return value of cgit_hosturl is not const Signed-off-by: Christian Hesse --- ui-shared.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'ui-shared.c') diff --git a/ui-shared.c b/ui-shared.c index f6d38de..09c34fd 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -54,14 +54,14 @@ const char *cgit_httpscheme(void) return "http://"; } -const char *cgit_hosturl(void) +char *cgit_hosturl(void) { if (ctx.env.http_host) - return ctx.env.http_host; + return xstrdup(ctx.env.http_host); if (!ctx.env.server_name) return NULL; if (!ctx.env.server_port || atoi(ctx.env.server_port) == 80) - return ctx.env.server_name; + return xstrdup(ctx.env.server_name); return fmtalloc("%s:%s", ctx.env.server_name, ctx.env.server_port); } -- cgit 1.4.1 n value='v1'>v1 collaborative ASCII art
about summary refs log tree commit diff homepage
Commit message (Expand)Author
2017-08-02Split tile access and modifyJune McEnroe
2017-08-01Madvise RANDOM and NOSYNCJune McEnroe
2017-07-31Fix removing clients from clientCastJune McEnroe
2017-07-31Build with debug infoJune McEnroe
2017-07-31Don't dump tiles in coreJune McEnroe
2017-07-31Use designated initializers for messagesJune McEnroe
2017-07-31Show other clients' cursorsJune McEnroe
2017-07-31Perform enter as two moves rather than a loopJune McEnroe
2017-07-31Track tile access countsJune McEnroe
2017-07-31Adjust move speed in clientJune McEnroe
2017-07-31Handle large movesJune McEnroe
2017-07-30Optimize builds for chrootJune McEnroe
2017-07-30Persist bright across color changesJune McEnroe
2017-07-30Add index.htmlJune McEnroe
2017-07-30Add snapshot.shJune McEnroe
2017-07-30Fix termcap patch for background colorsJune McEnroe
2017-07-30Update helpJune McEnroe
2017-07-30Fix help to track colorJune McEnroe
2017-07-30Support background colorsJune McEnroe
2017-07-30Track color only client-sideJune McEnroe
2017-07-30Add ostensible support for background colorsJune McEnroe
2017-07-30Add tile create and access timestampsJune McEnroe
2017-07-30Assert stable struct Tile field offsetsJune McEnroe
2017-07-30Add chroot.shJune McEnroe
2017-07-30Add ` commandJune McEnroe
2017-07-30Add sshd_configJune McEnroe
2017-07-30Add termcap patchJune McEnroe