mirror of
https://git.savannah.gnu.org/git/bison.git
synced 2026-03-22 18:53:04 +00:00
diagnostics: don't crash when libtextstyle is installed
Reported by neok m4700. https://lists.gnu.org/archive/html/bison-patches/2019-05/msg00025.html https://github.com/akimd/bison/pull/11 * src/complain.c (complain_init_color): style_file_prepare _needs_ a string as second argument.
This commit is contained in:
1
THANKS
1
THANKS
@@ -118,6 +118,7 @@ Mike Sullivan Mike.sullivan@Oracle.COM
|
|||||||
Nate Guerin nathan.guerin@riseup.net
|
Nate Guerin nathan.guerin@riseup.net
|
||||||
Neil Booth NeilB@earthling.net
|
Neil Booth NeilB@earthling.net
|
||||||
Nelson H. F. Beebe beebe@math.utah.edu
|
Nelson H. F. Beebe beebe@math.utah.edu
|
||||||
|
neok m4700 neok.m4700@gmail.com
|
||||||
Nick Bowler nbowler@elliptictech.com
|
Nick Bowler nbowler@elliptictech.com
|
||||||
Nicolas Bedon nicolas.bedon@univ-rouen.fr
|
Nicolas Bedon nicolas.bedon@univ-rouen.fr
|
||||||
Nicolas Burrus nicolas.burrus@epita.fr
|
Nicolas Burrus nicolas.burrus@epita.fr
|
||||||
|
|||||||
@@ -255,7 +255,7 @@ complain_init_color (void)
|
|||||||
|| color_mode == color_html
|
|| color_mode == color_html
|
||||||
|| (color_mode == color_tty && isatty (STDERR_FILENO)))
|
|| (color_mode == color_tty && isatty (STDERR_FILENO)))
|
||||||
{
|
{
|
||||||
style_file_prepare ("BISON_STYLE", NULL, pkgdatadir (),
|
style_file_prepare ("BISON_STYLE", "BISON_STYLEDIR", pkgdatadir (),
|
||||||
"bison-default.css");
|
"bison-default.css");
|
||||||
/* As a fallback, use the default in the current directory. */
|
/* As a fallback, use the default in the current directory. */
|
||||||
struct stat statbuf;
|
struct stat statbuf;
|
||||||
|
|||||||
Reference in New Issue
Block a user