summaryrefslogtreecommitdiff
path: root/src/terminal.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2018-05-07 20:10:17 +0200
committerBram Moolenaar <Bram@vim.org>2018-05-07 20:10:17 +0200
commit9b50f36e405309be97e28b5e19d81ff0902c5224 (patch)
tree9b03f43a99b40cb9969503dd0ca437788d94368a /src/terminal.c
parent402c83921e4e7ac8e9b0631dbac845f32ec7245f (diff)
downloadvim-git-9b50f36e405309be97e28b5e19d81ff0902c5224.tar.gz
patch 8.0.1803: warning for uninitialized variablev8.0.1803
Problem: Warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
Diffstat (limited to 'src/terminal.c')
-rw-r--r--src/terminal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/terminal.c b/src/terminal.c
index 4dd666523..0c483e140 100644
--- a/src/terminal.c
+++ b/src/terminal.c
@@ -4758,7 +4758,7 @@ f_term_gettitle(typval_T *argvars, typval_T *rettv)
f_term_gettty(typval_T *argvars, typval_T *rettv)
{
buf_T *buf = term_get_buf(argvars, "term_gettty()");
- char_u *p;
+ char_u *p = NULL;
int num = 0;
rettv->v_type = VAR_STRING;