mirror of
https://github.com/neovim/neovim.git
synced 2025-09-18 17:28:23 +00: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:
@@ -10048,6 +10048,7 @@ bool cmd_can_preview(char_u *cmd)
|
||||
}
|
||||
|
||||
exarg_T ea;
|
||||
memset(&ea, 0, sizeof(ea));
|
||||
// parse the command line
|
||||
ea.cmd = skip_range(cmd, NULL);
|
||||
if (*ea.cmd == '*') {
|
||||
|
Reference in New Issue
Block a user