From 4a83b64777b22933de186665ddb4d0570675c667 Mon Sep 17 00:00:00 2001 From: "Justin M. Keyes" Date: Mon, 2 Jul 2018 20:56:37 +0200 Subject: coverity/166184: Null pointer dereference (FP) False positive: should never happen, because unibi_from_env() would return NULL if $TERM is undefined. --- src/nvim/tui/tui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/nvim/tui/tui.c b/src/nvim/tui/tui.c index 25c39587f4..211b9bc544 100644 --- a/src/nvim/tui/tui.c +++ b/src/nvim/tui/tui.c @@ -202,7 +202,7 @@ static void terminfo_start(UI *ui) const char *term = os_getenv("TERM"); data->ut = unibi_from_env(); char *termname = NULL; - if (!data->ut) { + if (!term || !data->ut) { data->ut = terminfo_from_builtin(term, &termname); } else { termname = xstrdup(term); -- cgit