mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-19 04:02:05 +00:00
misc: acrnd: fix a minor build Werror
The comparison ((argv + 1)) will always evaluate as 'true' for the pointer operand in 'argv + 8' must not be NULL. Tracked-On: #7453 Signed-off-by: Fei Li <fei1.li@intel.com>
This commit is contained in:
parent
1651863584
commit
d625ce0677
@ -657,7 +657,7 @@ static int valid_start_args(struct acrnctl_cmd *cmd, int argc, char *argv[])
|
||||
{
|
||||
char df_opt[16] = "VM_NAME";
|
||||
|
||||
if (argc != 2 || ((argv + 1) && !strcmp(argv[1], "help"))) {
|
||||
if (argc != 2 || !strcmp(argv[1], "help")) {
|
||||
printf("acrnctl %s %s\n", cmd->cmd, df_opt);
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user