Rémi Bernon : mscoree: Initialize parsed_config_file private_path.

Alexandre Julliard julliard at winehq.org
Mon Apr 26 15:51:32 CDT 2021


Module: wine
Branch: master
Commit: 7cc8df67c31322df65ef3069f2e7c0e82856080c
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=7cc8df67c31322df65ef3069f2e7c0e82856080c

Author: Rémi Bernon <rbernon at codeweavers.com>
Date:   Thu Apr 22 21:06:16 2021 +0200

mscoree: Initialize parsed_config_file private_path.

In case of error we may free uninitialized pointer otherwise.

Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
Signed-off-by: Esme Povirk <esme at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/mscoree/config.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/mscoree/config.c b/dlls/mscoree/config.c
index 38f304f3df8..b6aa647d876 100644
--- a/dlls/mscoree/config.c
+++ b/dlls/mscoree/config.c
@@ -617,6 +617,7 @@ static const struct ISAXErrorHandlerVtbl ConfigFileHandlerErrorVtbl =
 static void init_config(parsed_config_file *config)
 {
     list_init(&config->supported_runtimes);
+    config->private_path = NULL;
 }
 
 static HRESULT parse_config(VARIANT input, parsed_config_file *result)




More information about the wine-cvs mailing list