mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix warning: "Assigned value is garbage"
clang scan-build noticed that find_command() may bitmask `eap->flags`. cmd_can_preview() only uses `ea.cmdidx`, but let's fix the warning... Found by clang scan-build 5.0
This commit is contained in:
parent
2afebc4e5f
commit
f97496a21c
@ -10048,6 +10048,7 @@ bool cmd_can_preview(char_u *cmd)
|
|||||||
}
|
}
|
||||||
|
|
||||||
exarg_T ea;
|
exarg_T ea;
|
||||||
|
memset(&ea, 0, sizeof(ea));
|
||||||
// parse the command line
|
// parse the command line
|
||||||
ea.cmd = skip_range(cmd, NULL);
|
ea.cmd = skip_range(cmd, NULL);
|
||||||
if (*ea.cmd == '*') {
|
if (*ea.cmd == '*') {
|
||||||
|
Loading…
Reference in New Issue
Block a user