tskrtt

Simple libev based gopher server
git clone https://git.inz.fi/tskrtt/
Log | Files | Refs | README

commit 3e208ec5d6049499297023d1edf9da0bcf5ffdf8
parent 7309eaa790b1ddd39b59b14e95b50b9385061d17
Author: Santtu Lakkala <inz@inz.fi>
Date:   Mon, 17 May 2021 01:12:22 +0300

Fix CGI environment

Diffstat:
Mmain.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/main.c b/main.c @@ -294,7 +294,7 @@ static char *joinstr(const char *a, const char *b, char separator) char *rv; if (!a || !*a) return strdup(b); - if (!b || !*b) + if (!b) return strdup(a); rv = malloc(strlen(a) + strlen(b) + 2); sprintf(rv, "%s%c%s", a, separator, b);