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:
Justin M. Keyes 2018-10-21 22:38:48 +02:00
parent 2afebc4e5f
commit f97496a21c

View File

@ -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 == '*') {