[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: emacs-22.1 coredumps on HPUX 11i
From: |
Glenn Morris |
Subject: |
Re: emacs-22.1 coredumps on HPUX 11i |
Date: |
Wed, 15 Aug 2007 20:43:04 -0400 |
User-agent: |
Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/) |
"Dimitry Kloper" wrote:
> I apologise in case this bug was already reported.
Actually it was, but this is a very timely re-posting, so never mind! :)
> The problem appears to be in the uninitialized static pointers
> default_orig_pair, default_set_foreground, default_set_background at
> the very beginning of function tty_default_color_capabilities() in
> term.c.
>
> Indeed, simply initializing those to NULL values solves the core dump.
Can you test a different fix please: rather than initializing to NULL,
move the declarations of the six static variables above the function,
ie so it looks like:
static int default_max_colors;
static int default_max_pairs;
static int default_no_color_video;
static char *default_orig_pair;
static char *default_set_foreground;
static char *default_set_background;
static void
tty_default_color_capabilities (save)
int save;