[PATCH] winegcc: Add missing strarray initialization.

Rémi Bernon rbernon at codeweavers.com
Fri Sep 24 03:17:40 CDT 2021


Signed-off-by: Rémi Bernon <rbernon at codeweavers.com>
---
 tools/winegcc/winegcc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/tools/winegcc/winegcc.c b/tools/winegcc/winegcc.c
index 0cb5ae390de..8e72c6bcfee 100644
--- a/tools/winegcc/winegcc.c
+++ b/tools/winegcc/winegcc.c
@@ -1475,6 +1475,7 @@ static void build(struct options* opts)
     {
         struct strarray tool, objcopy = build_tool_name(opts, TOOL_OBJCOPY);
 
+        tool = empty_strarray;
         strarray_addall( &tool, objcopy );
         strarray_add(&tool, "--only-keep-debug");
         strarray_add(&tool, output_path);
-- 
2.33.0




More information about the wine-devel mailing list