aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-07-02 20:56:37 +0200
committerJustin M. Keyes <justinkz@gmail.com>2018-07-02 20:56:37 +0200
commit4a83b64777b22933de186665ddb4d0570675c667 (patch)
tree9d6c4d9096241c1c760e215e28266fc0f0af956d /src
parentef9ef75a7b1e29002745d596e31a1d5ecff1be89 (diff)
downloadrneovim-4a83b64777b22933de186665ddb4d0570675c667.tar.gz
rneovim-4a83b64777b22933de186665ddb4d0570675c667.tar.bz2
rneovim-4a83b64777b22933de186665ddb4d0570675c667.zip
coverity/166184: Null pointer dereference (FP)
False positive: should never happen, because unibi_from_env() would return NULL if $TERM is undefined.
Diffstat (limited to 'src')
-rw-r--r--src/nvim/tui/tui.c2
1 files changed, 1 insertions, 1 deletions
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);