Fix possible troff crash with misconfigured build - 9base - revived minimalist … | |
git clone git://git.suckless.org/9base | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f71961be90faae365d90c29f96c0c1dd309953d2 | |
parent decec5092e45992cd0ae406d7c9ffb4ccd079bdf | |
Author: Kris Maglione <[email protected]> | |
Date: Thu, 15 Oct 2009 04:12:19 -0400 | |
Fix possible troff crash with misconfigured build | |
Diffstat: | |
M troff/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 s… |