From 62eb9f4b0c88d02c05e3971b3be25833996de0a2 Mon Sep 17 00:00:00 2001 From: Robert Shearman Date: Fri, 31 Mar 2006 12:50:10 +0100 Subject: [PATCH] widl: Initialise the temporary variable to 0 for parameters with more than one level of indirection. --- tools/widl/server.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/widl/server.c b/tools/widl/server.c index b3c8c65e6cb..9ffb6b5b335 100644 --- a/tools/widl/server.c +++ b/tools/widl/server.c @@ -167,7 +167,10 @@ static void assign_out_args(const func_t *func) } else { - fprintf(server, " = &_W%u;\n", i++); + fprintf(server, " = &_W%u;\n", i); + if (var->ptr_level > 1) + print_server("_W%u = 0;\n", i); + i++; } sep = 1; -- 2.11.4.GIT