[hackers] [9base] Fix possible troff crash with misconfigured build || Kris Maglione

From: <hg_AT_suckless.org>
Date: Thu, 15 Oct 2009 08:21:53 +0000 (UTC)

changeset: 48:aa169b00647b
tag: tip
user: Kris Maglione <maglione.k_AT_gmail.com>
date: Thu Oct 15 04:12:19 2009 -0400
files: troff/dwbinit.c
description:
Fix possible troff crash with misconfigured build

diff -r deca4d73dd68 -r aa169b00647b troff/dwbinit.c
--- a/troff/dwbinit.c Sun Sep 13 21:34:44 2009 +0100
+++ b/troff/dwbinit.c Thu Oct 15 04:12:19 2009 -0400
@@ -189,7 +189,8 @@
             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 */
Received on Thu Oct 15 2009 - 08:21:53 UTC

This archive was generated by hypermail 2.2.0 : Thu Oct 15 2009 - 08:24:06 UTC