From e503e9d35f80ff064c9f0ef24e514b00f5e214f9 Mon Sep 17 00:00:00 2001 From: Alex Gramiak Date: Fri, 31 May 2019 14:30:31 -0600 Subject: [PATCH] Set up defined_color_hook for the initial frame * src/terminal.c (init_initial_terminal): Set up the defined_color_hook. This avoids crashes when running in batch mode with code that manipulates colors. (Bug#36019) --- src/terminal.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/terminal.c b/src/terminal.c index bb02d586615..dfcd5b0a836 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -622,6 +622,7 @@ init_initial_terminal (void) initial_terminal->kboard = initial_kboard; initial_terminal->delete_terminal_hook = &delete_initial_terminal; initial_terminal->delete_frame_hook = &initial_free_frame_resources; + initial_terminal->defined_color_hook = &tty_defined_color; /* xfaces.c */ /* Other hooks are NULL by default. */ return initial_terminal; -- 2.39.2