commit | 9b50f36e405309be97e28b5e19d81ff0902c5224 | [log] [tgz] |
---|---|---|
author | Bram Moolenaar <Bram@vim.org> | Mon May 07 20:10:17 2018 +0200 |
committer | Bram Moolenaar <Bram@vim.org> | Mon May 07 20:10:17 2018 +0200 |
tree | 9b03f43a99b40cb9969503dd0ca437788d94368a | |
parent | 402c83921e4e7ac8e9b0631dbac845f32ec7245f [diff] [blame] |
patch 8.0.1803: warning for uninitialized variable Problem: Warning for uninitialized variable. (Tony Mechelynck) Solution: Initialize it.
diff --git a/src/terminal.c b/src/terminal.c index 4dd6665..0c483e1 100644 --- a/src/terminal.c +++ b/src/terminal.c
@@ -4758,7 +4758,7 @@ 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;