From: Oliver Kurth Date: Fri, 15 Sep 2017 18:23:04 +0000 (-0700) Subject: Fix pointer inequality comparison against NULL. X-Git-Tag: stable-10.2.0~534 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cfc2ee979176d914c17e7e84be54cbf2cbf48e38;p=thirdparty%2Fopen-vm-tools.git Fix pointer inequality comparison against NULL. A pointer is being tested for whether it's less than 0. Check for equality with NULL instead. --- diff --git a/open-vm-tools/lib/dataMap/dataMap.c b/open-vm-tools/lib/dataMap/dataMap.c index 6dbc6ac80..1582f4f6c 100644 --- a/open-vm-tools/lib/dataMap/dataMap.c +++ b/open-vm-tools/lib/dataMap/dataMap.c @@ -2188,7 +2188,7 @@ DataMap_SetStringList(DataMap *that, // IN/OUT { DataMapEntry *entry; - if (that == NULL || strList == NULL || strLens < 0) { + if (that == NULL || strList == NULL || strLens == NULL) { return DMERR_INVALID_ARGS; }