Fix possible troff crash with misconfigured build - 9base - revived minimalist port of Plan 9 userland to Unix
 (HTM) git clone git://git.suckless.org/9base
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f71961be90faae365d90c29f96c0c1dd309953d2
 (DIR) parent decec5092e45992cd0ae406d7c9ffb4ccd079bdf
 (HTM) Author: Kris Maglione <maglione.k@gmail.com>
       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(-)
       ---
 (DIR) 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 */