troff: avoid crash if home == NULL
R=rsc http://codereview.appspot.com/181070
This commit is contained in:
parent
7351eea28e
commit
6530d37d7f
@ -189,6 +189,7 @@ char *DWBhome(void)
|
|||||||
if ( (home = DWBHOME) == NULL || *home == '\0' || *home == ' ' )
|
if ( (home = DWBHOME) == NULL || *home == '\0' || *home == ' ' )
|
||||||
home = NULL;
|
home = NULL;
|
||||||
} /* End if */
|
} /* End if */
|
||||||
|
if ( home != NULL )
|
||||||
home = unsharp(home);
|
home = unsharp(home);
|
||||||
} /* End if */
|
} /* End if */
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user