commit f897bb2469da024a8db3b1fae10d24ac7cf040e1 from: Omar Polo date: Sat Aug 20 13:58:05 2022 UTC gotwebd: fix for possible NULL beign passed to fcgi_printf reported by and ok tracey@ commit - d927f8c8203baf6607d4e64fa3520e2d164100e6 commit + f897bb2469da024a8db3b1fae10d24ac7cf040e1 blob - 0c7f7f7bb282446556c78d5ae4e4efe47c63b19d blob + e1cfdd3906bda91a9adc685b20feaf8b9b3adbd0 --- gotwebd/gotweb.c +++ gotwebd/gotweb.c @@ -1621,7 +1621,7 @@ gotweb_render_summary(struct request *c) r = fcgi_printf(c, "
Description:
\n" "
%s
\n", - t->repo_dir->description); + t->repo_dir->description ? t->repo_dir->description : ""); if (r == -1) goto done; } @@ -1630,7 +1630,7 @@ gotweb_render_summary(struct request *c) r = fcgi_printf(c, "
Owner:
\n" "
%s
\n", - t->repo_dir->owner); + t->repo_dir->owner ? t->repo_dir->owner : ""); if (r == -1) goto done; }