From: John Wolfe Date: Fri, 26 Mar 2021 03:21:18 +0000 (-0700) Subject: Fix an uninitialized variable issue reported by a Coverity scan of X-Git-Tag: stable-11.3.0~96 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1a6546dfe7e0d4ed572434bd794d94f5228763b4;p=thirdparty%2Fopen-vm-tools.git Fix an uninitialized variable issue reported by a Coverity scan of open-vm-tools. --- diff --git a/open-vm-tools/vgauthImport/vgauthImport.c b/open-vm-tools/vgauthImport/vgauthImport.c index 8f1c3e4ab..e6a936ea1 100644 --- a/open-vm-tools/vgauthImport/vgauthImport.c +++ b/open-vm-tools/vgauthImport/vgauthImport.c @@ -1,5 +1,5 @@ /********************************************************* - * Copyright (C) 2012,2018-2020 VMware, Inc. All rights reserved. + * Copyright (C) 2012,2018-2021 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 @@ -397,16 +397,13 @@ QueryNamespace(char *namespace, size_t *resultDataLen) { char *result = NULL; - size_t resultLen; + size_t resultLen = 0; DynBuf buf; int i; Bool status = FALSE; ASSERT(namespace); - *resultData = NULL; - *resultDataLen = 0; - DynBuf_Init(&buf); /*