Subject: Re: xman segfaults alot
To: None <netbsd-users@netbsd.org>
From: Cliff Wright <cliff@snipe444.org>
List: netbsd-users
Date: 12/27/2001 16:05:11
Ian P. Thomas said:
> xman.  The small window comes up fine, but when you try to 
>select a man page to read, it crashes and produces a core file.

Their was a missing initialize of a temporary(stack) variable.

--- misc.c.orig Tue Nov  6 19:00:17 2001
+++ misc.c      Thu Dec 27 15:54:09 2001
@@ -402,7 +402,7 @@
 FILE *
 Format(ManpageGlobals * man_globals, char * entry)
 {
-  FILE * file;
+  FILE * file = 0;
 #ifdef HAS_MKSTEMP
   int fd;
 #endif