diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-01-17 23:43:43 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-01-18 00:10:08 +0100 |
commit | aa39fc56f68e2087a2327bcd03cc5f3d2dc9a696 (patch) | |
tree | caafab85917d2ce0de1289d67704648ee2345938 /src/nvim/ex_getln.c | |
parent | ea7491586fccb2ce6de43b77fd0bd06b6dbaa17d (diff) | |
download | rneovim-aa39fc56f68e2087a2327bcd03cc5f3d2dc9a696.tar.gz rneovim-aa39fc56f68e2087a2327bcd03cc5f3d2dc9a696.tar.bz2 rneovim-aa39fc56f68e2087a2327bcd03cc5f3d2dc9a696.zip |
PVS/V1032: pointer cast to a more strictly aligned type
Rework-of: ea7491586fcc
Helped-by: Björn Linse <bjorn.linse@gmail.com>
- The old (Vim) use of (char_u **)"" before ea7491586fcc is garbage,
which hints that this value was never used.
- The necessary condition is next to the NULL assigmnent, the pointer
would only be started to be accessed, if the length assignment next to
it is also changed.
Diffstat (limited to 'src/nvim/ex_getln.c')
-rw-r--r-- | src/nvim/ex_getln.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/ex_getln.c b/src/nvim/ex_getln.c index adba3d4e7e..786769dc7d 100644 --- a/src/nvim/ex_getln.c +++ b/src/nvim/ex_getln.c @@ -4702,7 +4702,7 @@ ExpandFromContext ( return ret; } - *file = &vim_emptystr; + *file = NULL; *num_file = 0; if (xp->xp_context == EXPAND_HELP) { /* With an empty argument we would get all the help tags, which is |