9base

revived minimalist port of Plan 9 userland to Unix
git clone git://git.suckless.org/9base
Log | Files | Refs | README | LICENSE

commit f71961be90faae365d90c29f96c0c1dd309953d2
parent decec5092e45992cd0ae406d7c9ffb4ccd079bdf
Author: Kris Maglione <maglione.k@gmail.com>
Date:   Thu, 15 Oct 2009 04:12:19 -0400

Fix possible troff crash with misconfigured build
Diffstat:
Mtroff/dwbinit.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/troff/dwbinit.c b/troff/dwbinit.c @@ -189,7 +189,8 @@ char *DWBhome(void) if ( (home = DWBHOME) == NULL || *home == '\0' || *home == ' ' ) home = NULL; } /* End if */ - home = unsharp(home); + if ( home != NULL ) + home = unsharp(home); } /* End if */ while (home && *home == '/' && *(home +1) == '/') /* remove extra slashes */