Red Hat ran coverity scan on open-vm-tools and found an occurrence
of CONSTANT_EXPRESSION_RESULT in TimeUtil_StringToDate().
/*********************************************************
- * Copyright (C) 1998-2018 VMware, Inc. All rights reserved.
+ * Copyright (C) 1998-2019 VMware, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published
/* 'YYYY/MM/DD' */
char temp[16] = { 0 };
- if (!(((date[4] != '/') || (date[7] != '/')) ||
- ((date[4] != '-') || (date[7] != '-')))) {
+ if (!((date[4] == '/' && date[7] == '/') ||
+ (date[4] == '-' && date[7] == '-'))) {
return FALSE;
}