]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Fix an uninitialized variable issue reported by a Coverity scan of
authorJohn Wolfe <jwolfe@vmware.com>
Fri, 26 Mar 2021 03:21:18 +0000 (20:21 -0700)
committerJohn Wolfe <jwolfe@vmware.com>
Fri, 26 Mar 2021 03:21:18 +0000 (20:21 -0700)
open-vm-tools.

open-vm-tools/vgauthImport/vgauthImport.c

index 8f1c3e4abb886f86c48a219166b5b822421c73e2..e6a936ea1f07191deae0c3971ad81d154bc1ab9e 100644 (file)
@@ -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);
 
    /*