# HG changeset patch # User Glenn Morris # Date 1187147969 0 # Node ID 69bcf35b14d382a149926fefbadff273ac768a95 # Parent 11dbda5b0d6d0ef9225e860efeb7a49d97ba4c5c Philippe Waroquiers (tty_default_color_capabilities): Explicitly initialize static variables in file scope, to avoid HPUX compiler problem. diff -r 11dbda5b0d6d -r 69bcf35b14d3 src/term.c --- a/src/term.c Wed Aug 15 03:09:28 2007 +0000 +++ b/src/term.c Wed Aug 15 03:19:29 2007 +0000 @@ -2238,15 +2238,19 @@ #ifndef WINDOWSNT +static int default_max_colors = 0; +static int default_max_pairs = 0; +static int default_no_color_video = 0; +static char *default_orig_pair = NULL; +static char *default_set_foreground = NULL; +static char *default_set_background = NULL; + /* Save or restore the default color-related capabilities of this terminal. */ static void tty_default_color_capabilities (save) int save; { - static char - *default_orig_pair, *default_set_foreground, *default_set_background; - static int default_max_colors, default_max_pairs, default_no_color_video; if (save) {