]> git.ipfire.org Git - thirdparty/open-vm-tools.git/commitdiff
Change to common source file not applicable to open-vm-tools.
authorKaty Feng <fkaty@vmware.com>
Mon, 24 Apr 2023 19:30:14 +0000 (12:30 -0700)
committerKaty Feng <fkaty@vmware.com>
Mon, 24 Apr 2023 19:30:14 +0000 (12:30 -0700)
open-vm-tools/lib/rpcVmx/rpcvmx.c

index 55c9173977b6fe05ce3608e584b42405b9b17b18..df6ee99434678efe31d8ffd3f9deb05e69b66b0f 100644 (file)
@@ -1,5 +1,5 @@
 /*********************************************************
- * Copyright (C) 2004-2018,2019,2021 VMware, Inc. All rights reserved.
+ * Copyright (C) 2004-2018,2019,2021,2023 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
@@ -217,7 +217,11 @@ RpcVMX_ConfigGetString(const char *defval, const char *var)
           * We have to dup the default, because of our contract: values we
           * return must always be freed by the caller.
           */
+#if defined(_WIN32) && defined(USERLEVEL)
+         value = _strdup(defval);
+#else
          value = strdup(defval);
+#endif
       }
    }