From 822d20d2cc162b2325592f14119b095321f6b624 Mon Sep 17 00:00:00 2001 From: yuyi Date: Wed, 3 Mar 2021 23:03:50 +0800 Subject: [PATCH] cgen: minor simplification of struct zero init (#9085) --- vlib/v/gen/c/cgen.v | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vlib/v/gen/c/cgen.v b/vlib/v/gen/c/cgen.v index 7cbf95b13c..75dc9f2386 100644 --- a/vlib/v/gen/c/cgen.v +++ b/vlib/v/gen/c/cgen.v @@ -4793,7 +4793,7 @@ fn (mut g Gen) struct_init(struct_init ast.StructInit) { } if !initialized { - g.write('\n#ifndef __cplusplus\n0\n#endif\n') + g.write('0') } g.write('}')